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
What are sessions in asp net?
What is the behavior of a Web browser when it receives an invalid element?
What is the postback property in asp.net?
What is the difference between Classic ASP and ASP.Net?
What are the event handlers that can be included in the Global.asax file?
What are the parts of an http response?
What are the authentication types in asp.net?
What is a query string in a url?
How to Separate background image and front image from original picture....
Which method do you use to enforce garbage collection in .net?
Which is faster union or union all?
How may clustered index we can create in table?
A web service can only be written in .net? State whether true or false.
What is different in .net 1.1 and .net 2.0?
What is asp.net mvc5? : Asp.Net MVC