Thursday, 4 September 2014

Common Language Specifications (CLS)

Common Language Specifications(CLS):
Lets see what is CLS is :
1.The Common Language Specification (CLS) is a fundamental set of language features supported by the Common Language Runtime (CLR).
1.CLS is nothing but a set of rules defined for the developers that they have to follow while coding.
2.The rules like we have to use “new” keyword while creating the object of any class. Another is if we want to use any inbuilt class from framework we have to include the respective namespace of that class into an applications otherwise we will not get those classes, methods accessible in code.
3.So the developer need to take these rules in account while implementing code.
2.CLS defines the base rules necessary for any language supported  by framework.
3.CLS represents the guidelines to the compiler of a language, which targets the .NET Framework.
1.CLS is a part of the specifications of the .NET Framework. CLS was designed to support language constructs commonly used by developers and to produce verifiable code, which allows all CLS-compliant languages to ensure the type safety of code.
2.CLS is a part of the specifications of the .NET Framework. CLS was designed to support language constructs commonly used by developers and to produce verifiable code, which allows all CLS-compliant languages to ensure the type safety of code.
3.It forms a subset of the functionality of common type system (CTS) and has more rules than defined in CTS
4. CLS and CTS  enables language interoperability in dotnet. Because of CLS and CTS dotnet achieves the Language Interoperability. This means the code written in any language supported by framework can be used in any other language without converting it.
Even though various .NET languages differ in their syntactic rules, their compilers generate the Common Intermediate Language instructions (MSIL code), which are executed by CLR. Thus, CLS acts as a tool for integrating different languages into one umbrella in a seamless manner.

0 comments:

Post a Comment