06-06-2013, 04:00 PM
Understanding .NET: The c# Environment
Understanding .NET.pptx (Size: 287.5 KB / Downloads: 14)
.NET Framework
.NET framework provides an environment for building , deploying and running web services and other applications
It consists three distinct technologies
Common Language Runtime (CLR)
Framework Base Classes
User Interface (ASP.NET , window form)
Common Language Runtime (CLR)
It is the heart and soul of the .NET Framework
It is a runtime environment in which program written in C# or in other language are executed
It also supports cross language Interoperability
Services provided by CLR are ..
Loading and execution of programs
Memory Isolation for Applications
Verification of type safety
Compilation of IL into native executable code
Providing metadata
Memory management (Automatic Garbage Collocation )
Enforcement of Security
Managing exceptions and Errors
Metadata
Metadata allows us to write a component in C# and let another application use the metadata from Visual Basic .NET
A compiler for the CLR will generate metadata during compilation and store the metadata (in a binary format) directly into assemblies
Metadata is binary information describing your program that is stored either in a common language runtime or in memory
Assembly
An assembly is a file that is automatically generated by the compiler upon successful compilation of every .NET application
It can be either a Dynamic Link Library or an executable file
It is generated only once for an application and upon each subsequent compilation the assembly gets updated
It is used for deployment, versioning, and security.
Two types
Private Assembly : Can be accessed by Single Application
Shared Assembly: Can be accessed by multiple application
Managed Code
As we know CLR is responsible for managing the execution of code compiled for .NET platform
The code that satisfies CLR at runtime in order to execute is referred as Managed Code
Means the code that is understandable by CLR is known as Managed Code
Common Language Specification (CLS)
CLS is subset CTS
CLS allows developers, vendors, software manufactures an opportunity to work with in a common set of specification for language, data types
CLS defines the standard that the object must contain in order to communicate with each other, in homogeneous environment
Set of rule which follow by different languages ex-like every language used variable declaration ,exception handling events