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


Please Help Members By Posting Answers For Below Questions

Where would you use an ihttpmodule, and what are the limitations if any?

723


Is global asax mandatory?

735


What is an imagemap in asp.net?

738


Is asp.net web forms dead?

711


Can you dynamically assign a Master Page?

744






Is asp.net still used?

742


What is preprocessor in .net?

689


What is a global postback url?

690


How can you send an email message from an asp.net web page?

685


Will the asp.net validators run in server side or client side? How do you do client-side validation in .net?

684


What are the difference between function and stored procedure in .net programming language?

440


Where sessions are stored in asp.net?

716


How to reduce the width of textbox in editcommandcolumn of datagrid?

705


What is the difference between abstract class vs interface? Can give me the real time examples?

683


Define satellite assemblies.

765