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
Is redux flux?
Explain the server control events of asp.net ?
How to implement Authentication and Authorization?
What are standard controls?
What is the use of autowireup in asp.net?
What is the use of session state and application state and difference between them?
What is viewstate parameter?
What are the advantages of asp.net mvc framework? : asp.net mvc
Fetch one page value to another page without using state-managment ?
How about the security in Activex DLL and Activex EXE ?
Why do we need Sessions?
What is the difference between c# and .net?
Give 2 examples for scenarios when routing is not applied?
What is the significance of attaching a profile while creating a user?
To get the values in two different controls to match which control you use it?