Dot Net Presentation 2

Reviews
Shared by: Mayur
Stats
views:
528
rating:
not rated
reviews:
0
posted:
4/17/2008
language:
pages:
0
IL Assembler What is IL?  The .NET applications generated by .NET-oriented compilers (such as Microsoft Visual C# .NET, Microsoft Visual Basic .NET, ILAsm, and many others) are represented in an abstract, intermediate form, independent of the original programming language and of the target machine and its operating system. of IL, .NET applications written in different languages can interoperate very closely, not only on the level of calling each other’s functions but also on the level of class inheritance.  Because Example of class inheritance and interoperation of different languages  Class  written using visual basic Public Overridable Sub Hello() System.Console.WriteLine("Hello VB.NET") End Sub public Function Add(ByVal a,ByVal b) return a+b End Function Public Class vbnet End Class Csharp class extends vb class  Class written using csharp language public class csharp : vbnet { public override void Hello() { base.Hello(); int i=10,j=20; int k=(int)base.Add(i,j); System.Console.WriteLine("Hello From CSharp"); System.Console.WriteLine(i+ "+ "+j+" = "+k); } public static void Main() { csharp h = new csharp(); h.Hello(); } } CLS – Common Language Specification  The set of rules guaranteeing the interoperability of .NET applications. by ECMA (European Computer Manufacturers Association).  Outlined  limits the naming conventions, data types, function types, and certain other elements, forming a common denominator for different languages. compliant code  CLS CTS – Common Type Specification Abstract intermediate representation  metadata  system of descriptors of all structural items of the application—classes, their members and attributes, global items, and so on—and their relationships.  Manage  code represents the functionality of the application’s methods (functions) encoded in an abstract binary form known as Microsoft intermediate language (MSIL). CLR manages IL code  type  control verification and conversion of item types during execution.  structured  exception handling similar to “unmanaged” structured exception handling (C++-style), but it is performed by the runtime rather than by the operating system.  garbage  collection automatic identification and disposal of objects no longer in use.  .Net Application = one or more managed executables = collection of metadata and managed IL code = assembly = collection of modules two major common language runtime subsystems dealing with each component are :    The Loader JIT (just-in-time) compiler Creation and execution of a managed .NET application Writing program in Csharp language class a { public static void Main() { System.Console.WriteLine("Hello CSharp"); } } >>csc /out:e:\testIL\a.exe e:\testIL\a.cs >>Ildasm e:\testIL\a.exe Writing program in ILAsm language  Code for Hello.il file .assembly extern mscorlib { } .assembly Helloassembly { } .module hello.exe .namespace hello.or { .class public auto ansi hello extends [mscorlib]System.Object { .field public static int32 val .method public static void Main( ) cil managed { .entrypoint ldstr "hello using IL" call void [mscorlib]System.Console::WriteLine(string) ret } } } Compilation tools  ILASM , ILDASM , NGEN

Related docs
Dot Net Presentation 6
Views: 631  |  Downloads: 136
Dot Net Presentation 4
Views: 1153  |  Downloads: 165
Dot Net Presentation 1
Views: 1047  |  Downloads: 170
Dot Net Presentation 5
Views: 1438  |  Downloads: 164
DOT NET questions
Views: 506  |  Downloads: 40
Dot-Net-Interview-Questions
Views: 518  |  Downloads: 81
.NET Framework
Views: 192  |  Downloads: 49
Dot Net Presentation 3
Views: 513  |  Downloads: 116
DOT_NET
Views: 0  |  Downloads: 0
DOT NET
Views: 13  |  Downloads: 7
ASP Dot Net Web Forms
Views: 489  |  Downloads: 33
dot-net-programmer-resume 578
Views: 130  |  Downloads: 10
LATEST DOT NET INTERVIEW QUESTIONS
Views: 65  |  Downloads: 32
DOT 50000-04
Views: 5  |  Downloads: 0
premium docs
Other docs by Mayur
WORLD_TIME[1]
Views: 328  |  Downloads: 53
TRAINS_INDIA
Views: 996  |  Downloads: 54
STD
Views: 327  |  Downloads: 31
PICNIC_SPOTS
Views: 2419  |  Downloads: 45
NAME___ITS_MEANING
Views: 840  |  Downloads: 90
clock
Views: 300  |  Downloads: 28
celldecoder
Views: 265  |  Downloads: 35
Best_Websites_list[2]
Views: 812  |  Downloads: 116
Dot Net Presentation 6
Views: 631  |  Downloads: 136
Dot Net Presentation 5
Views: 1438  |  Downloads: 164
Dot Net Presentation 4
Views: 1153  |  Downloads: 165
Dot Net Presentation 3
Views: 513  |  Downloads: 116
Dot Net Presentation 1
Views: 1047  |  Downloads: 170
A b c -x y Z of Friendship
Views: 146  |  Downloads: 9
Searchinig Tips
Views: 398  |  Downloads: 50