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
Explain what are delegates?
What is data cache in sql server?
What is the web.config file in asp?
Why web api is better than wcf?
Is asp.net mvc still used? : Asp.Net MVC
How do you do client-side validation in .net? How to disable validator control by client side javascript?
What are the server controls in asp.net?
Why do we use asp.net?
What are tuples?
How will you load dynamic assembly?
How do you implement sql caching in asp.net?
What are the main advantages of using asp.net?
Can you clarified A Web service can only be written in .NET or not?
What is recordset asp?
How do you declare static variable?