What is CTS, CLS and CLR ?

Answer Posted / dinesh parmar

What is the CTS?
A set of common types
any language that runs in CLR should implement
no syntax specified
Languages often define aliases
For example
CTS defines System.Int32 – 4 byte integer
C# defines int as an alias of System.Int32
string -> System.String
object -> System.Object

What is the CLS?
A specification of language features
how methods may be called
when constructors are called
subset of the types in CTS are allowed
E.g. UInt32 is in CTS, but not in CLS
Non-CLS-compliant example
Code that takes UInt32 in a public method
Can mark classes as CLS-compliant
not marked is assumed to mean not compliant.

Is This Answer Correct ?    31 Yes 18 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are sessions in asp net?

539


What is the behavior of a Web browser when it receives an invalid element?

636


What is the postback property in asp.net?

554


What is the difference between Classic ASP and ASP.Net?

548


What are the event handlers that can be included in the Global.asax file?

594






What are the parts of an http response?

520


What are the authentication types in asp.net?

588


What is a query string in a url?

555


How to Separate background image and front image from original picture....

567


Which method do you use to enforce garbage collection in .net?

533


Which is faster union or union all?

588


How may clustered index we can create in table?

573


A web service can only be written in .net? State whether true or false.

553


What is different in .net 1.1 and .net 2.0?

584


What is asp.net mvc5? : Asp.Net MVC

555