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

How does session authentication work?

503


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?

1776


What is GAC in ASP.NET 2.0

578


In the Repeater control which way you can edit?

639


What are validators and list some validators of asp.net?

533






Define managed code and managed data in .net?

501


Explain Apache web servers ? How can you get ASP.NET running in Apache web servers - why should you do this?

504


What are the different properties of server control that exists?

558


What are user controls?

561


What is redirecting behavior?

517


What is asp.net ajax?

548


what is publisher?

1644


What are validator? How do you disable them?

595


What is difference cookie and session?

519


Which method do you use to enforce garbage collection in .net?

510