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
Define globalization and localization.
What is connection pooling and how to enable and disable connection pooling?
What is the difference between rest and restful?
Explain the asp.net mvc folder conventions? : asp.net mvc
What is applicatio domain?
Give an example of cookie abuse.
What are the parts of an http response?
How to do parallel database export in remote SQL Server in ESSL time track. It is working for local server but not working for remote SQL Server
What is difference between viewstate and session in asp net?
How do you implement postback with a text box?
What a diffgram is, and a good use for one?
What are the new login controls in asp.net 2.0?
Why do we use sessions?
Why we are using mvc instead of asp.net? : Asp.Net MVC
Can anyone please tell me that the question posted on this website are Sufficient for the interview with 2+ year experience in .net