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 is the difference between globalization and localization?
Explain Apache web servers ? How can you get ASP.NET running in Apache web servers - why should you do this?
What is parse in asp.net?
Explain the difference between authentication and authorization.
Can we have multiple web config files for an asp.net application?
What kind of data can be stored in viewstate?
6. Tell us about a time when you failed to meet a deadline. What were the repercussions?
What is viewstategenerator?
How can you use a custom controls in ASP.NET application?
What is the use of the tag in the web.config file?
Explain authorization levels in .net ?
What is query string?
What is ispostback method in asp.net? Why do we use that?
What is the significance of finalize method in .net?
How can you register a custom server control to a web page?