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 adavantage of using ASP.NET routing?
What is the typical session identifier?
What is the maximum number of classes that can be contained in one dll file?
What is the flow of processing of the request? : asp.net mvc
Define web services in asp.net.
Explain how dot net compiled code will become platform independent?
What is the difference between a page theme and a global theme?
What is mvc in angular?
What is server side session?
Differentiate between a hyperlink control and a linkbutton control.
What is cache in asp net?
What are the major built-in objects in ASP.NET?
How to register exception filter globally?
What is asp.net version?
What is http response header?