What is "Common Language Specification" (CLS)?

CLS is the collection of the rules and constraints that every language (that seeks to achieve .NET compatibility) must follow. It is a subsection of CTS and it specifies how it shares and extends one another libraries.

Showing Answers 1 - 4 of 4 Answers

Ans:

yes,

CLS is the collection of the rules and constraints that every language (that seeks to achieve .NET compatibility) must follow. It is a subsection of CTS and it specifies how it shares and extends one another libraries.

  Was this answer useful?  Yes

rinkujnu

  • Jun 23rd, 2007
 

CLS specify certain set of rules to which, each .net languages should follow to achieve the language interoperability.

Let take an situation:

if u have 2 public classes in C#, let say class a and class A. if you want to use this classes in your VB project.
iTry to create an object of class a/A, u will get an compilor error message, since VB is not case-sensitive language. it doesn't have any differencce in a and A.

Hence your c# code is not CLS complience code. which imply u can't have 2 classes of same name those differ only in cases for CLS complience code to achieve language interoperability.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions