Drop Down MenusCSS Drop Down MenuPure CSS Dropdown Menu

Wednesday, 10 December 2014

FEATURES OF .NET FRAMEWORK

Today in Engineer's World, we are discussing a very important topic of .Net in very easy way. Posted By- +LIVE VIAR +Manish Kumar Gautam +ASP.NET SOLUTIONS

Click imagination hunt to see latest Blogs

Previous - .NET Framework

FEATURES

Features of .NET Framework

o   GOOD DESIGN: Design is utmost the most important thing as it represents the whole work about anything. .Net Framework provide us very good user interface because in today's competitive world the user interface is very important.

o   OOP SUPPORTED: We say .Net is Object Oriented Programming Language. Because without class we are not going to develop a single application in our project. And a language that supports the features of OOP is nothing but .Net. 

o   LANGUAGE INDEPENDENT: Here we have several languages in .Net. Each and every language in .Net is converted to IL (Intermediate Language). Make it clear that all languages are Interoperable. C# as all Microsoft .Net supported languages, shares a common .Net run-time library. The language compiler generate Intermediate Language (IL) code, which a .Net supported compiler can read with the help of CLR. Therefore you can use a C# assembly without any problem and vice-versa.

o   PLATFORM DEPENDENT: Platform Dependent means an application which can run on multiple operating systems, the only thing required is to install the .Net framework in it or on the machine.

o   OPEN SOURCE:  Now we are open source too. As referred by Microsoft in their blog posted on 12 Nov 2014 that .Net Core will be open source, including the runtime as well as the framework libraries. You can follow the blog on http://blogs.msdn.com/b/dotnet/archive/2014/11/12/net-core-is-open-source.aspx

o   FLEXIBLE DATA ACCESS: Flexible Data Access can be provided by the Ado.Net Technology. Ado.Net is database technology which is used to access the data. Means we are going to store the data from front end and back end and back end to front end application. For example- You can design the front end application at Visual Studio and back-end application at Microsoft SQL SERVER. These two are not having any connectivity, here we are using a mediator between these two i.e., Ado.Net.

o   DYNAMIC WEB PAGES: Dynamic Web Pages are created using Asp.Net. Asp.Net is a Web Technology, by which we are going to create the Web Application. We have two type of Web Application: - Static Application and Dynamic Application. Static Application can be developed by using HTML and CSS. But to make it dynamic we have to use this technology.

o   WEB SERVICES: Web Services extend the World Wide Web Infrastructure to provide the means for software to connect to other application. Application access Web services via Web Protocols and data formats such as HTTP, XML, UDDI, WSDL and SOAP that are present everywhere. Web services allow different applications from different sources to communicate with each other without time consuming custom coding. 
  
o   CODE ACCESS SECURITY: Today, even developing a small application must require high security and access right, because anyhow and from anywhere some unauthorized user may enter to the application and inject viruses and worms, which may damage or destroy data and cost time and money. Therefore, CAS will check the unauthorized users, or it will create the unauthorized restricted to the resources. Their main aim is to damage the .dll and libraries that are very sensitive for any project.

There are many more.... as you Checkout Framework from the beginning 1.0 to 4.6 till the latest.

You can learn more about Namespaces and Assembly.


For any query, comment us below.


Keep learning and sharing...

Tuesday, 2 December 2014

.NET FRAMEWORK

Today in Engineer's World, we are discussing a very important topic of C# -String in very easy way. Posted By- +LIVE VIAR +Manish Kumar Gautam +ASP.NET SOLUTIONS

Click imagination hunt to see latest Blogs


Q- Define .NET Framework?

DEFINITION: .Net Framework is a platform for set of Libraries, Utilities, Compilers which we can used for Developing, Building and Deploying various .Net Application.
.Net Applications like 
o   Windows Form Application
o   Web Application
o   Console Application
o   WCF Application
o   WPF Application
o   Silverlight Application
 
.NET Framework Architecture

Q- EXPLAINING THE COMPLETE ARCHITECTURE OF .NET FRAMEWORK?

.Net Framework Architecture

The process starts with the compilation of the code written for example in C# by their language compilers (CSC which is C# Compiler) into Intermediate Language (IL). The IL code and the resources are stored on a disk in an executable file called an assembly, with an extension of .exe and .dll. We talk about .exe and .dll in our later blogs. Just for now make a rough idea that .exe and .dll are extensions in which IL information is stored. It is the file that provides information about the assembly name, version number, culture information, public key token and process architecture. Now, have a look according to Figure 1 we are completed with the first two steps. Now, what happen in the next step is when our C# code is executed successfully, the assembly is loaded into the CLR. CLR serve as an execution engine for the IL code whose responsibility is to check the functioning of the code on the behalf of CLS and CTS (check the details of CLS and CTS at the below subheading points of their own). Now, when the requirements are met CLR performs the Just In Time (JIT) compilation to convert the IL code to machine code which is understandable by the Operating System of the client machine.


Compilation work in .NET

Q-HOW DOES THE COMPILATION WORK STARTS IN .NET FRAMEWORK?

Compilation in .NET Framework
Source code is compiled in Intermediate Language (IL) by their own language compiler. See the Figure (2) and proceed step by step. 

Suppose a Developer choose to write a code in any language let's say we are taking two language code C# and VB. Now the code is compiled by its language compiler into Intermediate Language Code (IL). It means every .Net language has its own language compiler so that it may compiled into IL. 
Now the question is what is this IL Code? Why we inserted or using this in our figure. IL is half (1/2) compiled code and is same for every language.  IL is the lowest-level human readable programming language used by the .NET Framework. For ex- Take Vb Code (in column 1) and C# Code (in column 2)


both returning the same output but the syntax is different as you can see in Figure 3. Means Data-types are different their declaration is different there casting styles is different. We are using a different syntax for Vb.Net Code and completely different syntax for C# Code. But, now what happen is VSC will compile the Vb.Net code into IL and similarly the CSC will compile the C# code into IL. Now, when you look into the IL Code, it will be same for both the source code. That means there is no two different source code. We have only one single source code, which is IL. This is How the compilation is done from source code to Intermediate Language (IL) code. Next we read about IL.

IL 

Q- WHY IL IS REQUIRED?


Let just understand this by using an example-
Suppose we have to develop an Internet Video Downloader Application for a particular client. 
Things to keep remember:
While developing and building we should know about the specification for the client machine.
o   What type of computer he has? 
o   What type of Operating System (O.S.) use by them? 
o   What type of RAM he has?
o   What type of process he has?
Because machine code completely dependent on the specification of the computer. A normal machine doesn't know about IL code or CSC code or VBC code it only and only understands machine language. And the developer is totally unaware of the client machine as both are at different locations. So it is not possible for any developer to tackle this problem. So, Microsoft introduces the concept CLR that is the execution engine for .NET application and it serve as the interface between Application and O.S. So, that's why the language compiler convert the source code into IL. This IL is taken by JIT (JUST IN TIME COMPILER). Wait... and see the Figure 4 to proceed and understood. It’s the JIT who took the responsibility who convert the IL code into the machine code. Now this JIT at run-time convert the IL code into machine code which actually getting executed according to the client machine configuration. IL is also known as MSIL and CIL i.e., Microsoft Intermediate Language and Common Intermediate Language.

CLR

Q- WHAT IS CLR?

CLR: CLR is the run-time environment that execute MSIL code. CLR takes the compiled code IL and pass it to the JIT compiler. Now, JIT convert it to machine code. And this machine code is understandable by the Operating system. CLR consist of CTS and CLS.

CTS

Q- WHAT IS CTS?

CTS: CTS is Common Type Specification. Now suppose we have to consume some VB.Net code into C# code. So to make it possible, we need CTS. So the question is can we change the data type from VB.Net to C#? The answer is Yes, because both the data type is derived from CTS. For ex- Integer in VB.Net and “int” in C# both are derived from System.Int32. So this is what we call Common Type System/Specification. CTS contain CLS. 

CLS

Q- WHAT IS CLS?

CLS: CLS is Common Language Specification. CLS define set of rules which every .Net compliant languages must follow. For ex- there are some rules which both the languages C# and VB.Net must follow so as to easy communicate with each other. Like- put proper casing for variable declaration. As a and A are considered as same variable in VB.Net but it is counted as two different variable in C#. So while writing C# code we should care that, if we declare two variables with same name but with different casing. Then, it is not possible for VB.Net application to consume that library. 

BCL

Q- WHAT IS BCL?

BCL (Base Class Library): Now, if you want to communicate with the database. It is not required to write each and every line like how the compilation works in depth.
If you want to read or write any file stored in the local disk, you are not required to write the complete C level coding. There are some classes available like files. Just create object for these classes and use it. 
So, these are some reusable libraries available in BCL in .Net Framework itself. We can use them and proceed with our work. We are not required to waste our time which is already been done.

FCL

Q- WHAT IS FCL?

FCL (Framework Class Library): The FCL is a collection of over 700 classes and data types that enables .Net application to read and write files, access databases, process XML, display a graphic a graphic user interface, draw graphics, use web services, etc. The FCL wraps much of the massive, complex Win32 API into simpler .Net object that can be used by c# and other .Net Programming languages.  

.NET TOOLS

Q- WHAT ARE .NET TOOLS?

.NET TOOLS: Visual Studio .Net is Microsoft own Tool. It provides an Integrated Development Environment (IDE). It helps Developers to built Windows Application, Web Application and Web Services running on any platform that supports .Net.


For any query, comment us below.


Keep learning and sharing...

Featured post

Think that makes you rich and richer

 Napolean said: “You can think and grow rich, but if you can be brought up like most people with work and you won't starve, this wil...