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
Where would you use an ihttpmodule, and what are the limitations if any?
Is global asax mandatory?
What is an imagemap in asp.net?
Is asp.net web forms dead?
Can you dynamically assign a Master Page?
Is asp.net still used?
What is preprocessor in .net?
What is a global postback url?
How can you send an email message from an asp.net web page?
Will the asp.net validators run in server side or client side? How do you do client-side validation in .net?
What are the difference between function and stored procedure in .net programming language?
Where sessions are stored in asp.net?
How to reduce the width of textbox in editcommandcolumn of datagrid?
What is the difference between abstract class vs interface? Can give me the real time examples?
Define satellite assemblies.