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
Describe a Windows Service and its lifecycle ?
What is app_code folder in asp net?
What is asp net application object?
What is server side in asp.net?
What does session_start () do?
How can you dynamically add user controls to a page?
How does ASP.NET framework maps client side events to Server side events.?
Which method is used to perform all validation at the page level?
If I am developing an application that must accomodate multiple security levels though secure login and my asp.net web application is spanned across three web-servers (using round-robin load balancing). What would be the best approach to maintain login-in state for the users?
What is enableviewstate?
What are the difference between function and stored procedure in .net programming language?
What is the difference between a candidate key and primary key?
What are Authentication and Authorization?
What is syntax code to send email from an asp.net application?
Can you use c# without .net?