18 March 2014

what is .NET and these basic components?

DOTNET means " Data Object Technique Network Enabled Technology".it is framework which supports more than 44 languages.
.NET is a software development platform developed by Microsoft.It runs on Microsoft windows operating systems.
.NET provides tools and libraries that allow developers to develop applications and services much easily,faster and secure by using convenient way.

Basic components of .NET :

1.CLR-common language runtime :
                                 it is responsible for managing the execution of .NET programs.the compiled code is converted into machine instructions that, in turn, are executed by the computer's CPU. The CLR provides additional services including memory management, type safety and exception handling,garbage collection

2.CTS-common type system :
                                 Every datatype is internally represented by a class or structure.all the classes and structures related to datatypes are collectively known as "CTS".
mainly it sets the standard for all the datatypes that you declared integer type as int.

3.CLS -common language specification :
                                 It defines a set of rules and restrictions that every language must follow which runs under .NET framework.

4.MSIL - Microsoft Intermediate language code :
                                In C# program,after the compilation,the code is converted into msil code.it also known as assemble code or metadata.

5.Assembly : fundamental unit of deployment, version control, reuse, activation scoping, and security permissions.

6.Class Library :
                                The class library provides a comprehensive set of facilities for application development. Primarily written in C#, it can be used by any language(by Common Language Specification ).

7.namespace : logically grouping similar classes into a hierarchical structure. This prevents naming conflicts.

EX:-hello world program

using System;//namespace
{
  class Hello//class name
  {
    public static void main()//main function
   {
     Console.WriteLine("Hello World");// for printing same as printf()
     Console.ReadKey();//to hold output window.same as getch()
   }
 }
}

output:Hello World

No comments:

Post a Comment