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
How does session authentication work?
1.What r collections? 2.What is .pdb file? 3.Is it possible to provide access to users in master page? 4.What is dirty n Phantom Read(SQL)? 5.What r different isolation levels(SQL)? 6.How to set authentication mode in web.config file?
What is GAC in ASP.NET 2.0
In the Repeater control which way you can edit?
What are validators and list some validators of asp.net?
Define managed code and managed data in .net?
Explain Apache web servers ? How can you get ASP.NET running in Apache web servers - why should you do this?
What are the different properties of server control that exists?
What are user controls?
What is redirecting behavior?
What is asp.net ajax?
what is publisher?
What are validator? How do you disable them?
What is difference cookie and session?
Which method do you use to enforce garbage collection in .net?