Presentation is loading. Please wait.

Presentation is loading. Please wait.

Using.NET Platform Note: Most of the material of these slides have been taken & extended from Nakov’s excellent overview for.NET framework, MSDN and wikipedia.

Similar presentations


Presentation on theme: "Using.NET Platform Note: Most of the material of these slides have been taken & extended from Nakov’s excellent overview for.NET framework, MSDN and wikipedia."— Presentation transcript:

1 Using.NET Platform Note: Most of the material of these slides have been taken & extended from Nakov’s excellent overview for.NET framework, MSDN and wikipedia By Muhammad Ali

2 Components of.NET  Main components Common Language Runtime (CLR) Base Class Library Common Type System Common Language Specification

3 Common Language Runtime  Foundation of the.NET Framework  An agent that manages code at execution time, providing core services such as ○ Memory management ○ Thread management ○ JIT ○ Code Access Security & Role Base Security  Managed code Code that targets the runtime Represented by Intermediate Language (IL)  Unmanaged code Code that does not target the runtime On the fly Installation Time

4 Intermediate Language  MSIL … or CIL  CLR compiles IL using JIT Compiler Each function is compiled (to native code) just before execution!  Recompilations of assemblies ~ Possible!

5 Base Class Library  Helps in accomplishing a range of common programming tasks, including String management Data collection Database connectivity File access

6 Base Class Library System Threading Text ServiceProcess Security Resources Reflection Net IO Globalization Diagnostics Configuration Collections Runtime Serialization Remoting InteropServices

7 Common Type System  Full Range of Types that CLR Understands  Defines how types are declared, used, managed in the runtime

8 Common Language Specification SSubset of CTS AAll Languages in.NET are expected to support CTS AAny Benefits? Cross Language Integration!

9 Difference between Base Class Library &.NET Framework Library

10 Relationship between CLR & Framework Library

11 Code Compilation and Execution Compilation Before installation or the first time each method is called Execution JIT Compiler NativeCode MSIL Code Metadata Source Code Language Compiler Also called Assembly (.EXE or.DLL file) Also called Assembly (.EXE or.DLL file)

12 Assemblies  Types Library Assembly (DLL) Application Assembly (EXE)  Smallest deployable unit in the CLR  Have unique version number  No version conflicts (known as DLL hell)  Contains IL code to be executed

13 Assemblies  Security boundary Permissions are granted at the assembly level  Type boundary All types include the assembly name they are a part of  Self-describing manifest Metadata that describes the types in the assembly

14 Metadata in Assemblies Type Descriptions Classes Base classes Implemented interfaces Data members Methods NameVersionCulture Assembly Description Other assemblies Security Permissions Exported Types

15 Assemblies  More than One Assemblies… May Conflict!  Assemblies conflict resolution Using metadata ○ Local ○ Shared (Global Assembly Cache or GAC)  Different applications may use different versions of an assembly Easier software updates Easier software removal

16 References  MSDN Library http://msdn.microsoft.com/en-au/default.aspx  Nakov’s Excellent Presentation http://www.nakov.com  WikiPedia http://en.wikipedia.org/wiki/.NET_Framework


Download ppt "Using.NET Platform Note: Most of the material of these slides have been taken & extended from Nakov’s excellent overview for.NET framework, MSDN and wikipedia."

Similar presentations


Ads by Google