Archive for October 24th, 2007
What is Common Language Runtime in ASP.NET? or What is CLR in ASP.NET
Common Language Runtime (CTS)
Common language runtime (CLR) is runtime for all .Net languages.It’s responsilbe for executing & managing all code written in any language that targets the .Net plateform.It’s provides many core services for application, such as:
1.Garbage Collection (GC):Garbage collection is a CLR feature that automatically manages memory on behalf of an applicaton.You create objects and use it, but you don’t explicity release them.The CLR automatically release objects when they are no longer reference & in use.This eliminates memory leaks in application.
2.Code Verification:Code verification is a process that ensure all code is safe to run prior to execution.Code verification enforces type safty and therefore prevents code from performing illegal operation such as accessing invalid memory location
3.Code Access security:Code access security allows code to be granted or denied permissions to do things, depending on the security configuration gor a given machine.
Add comment October 24, 2007
What is Common Laguage Specification in ASP.NET? or What is CLS in ASP.NET?
Common Laguage Specification (CLS)
Common language specification is the sub-set of the Common type system(CTS).This is provide the cross language interoperability.
For Example:
VB .Net’s Integer is 32 bit which maps exactly to the IL Type int32
and C# .Net’s int is 32 bit which maps exactly to the IL Type int32
i.e int (In C#)——––> int32 (In IL) <–———- integer (In VB)
int (In C#) and Integer(In VB) both are exactly mapped to int 32(In IL).
Add comment October 24, 2007
What is Common Type System In ASP.NET? or What is CTS In ASP.NET?
Common Type System(CTS):
Common type system defines the pre-define data types that are availbe in IL,so that all languages that target the .Net framwork will produce compile code that is ultimately based on the CTS.
For Example:
VB .Net’s Integer is 32 bit which maps exactly to the IL Type int32
and C# .Net’s int is 32 bit which maps exactly to the IL Type int32
i.e int (In C#)——––> int32 (In IL) <–———- integer (In VB)
1 comment October 24, 2007