difference between cls and cts in details

Posted by Shanky11 under C# on 1/28/2013 | Points: 10 | Views : 7585 | Status : [Member] | Replies : 3
difference between cls and cts in details
please provide details infromation on cls and cts
whats the actual diff between cls and cts not theory that provided on internet




Responses

Posted by: Budnet on: 1/30/2013 [Member] Starter | Points: 25

Up
0
Down
Common Type System and Common Language Specification are both the part of .NET Framework. Let me give a brief idea about both:

Common Type System is a standard of type definition and their values. This is common for all .NET Framework compliant languages. The main purpose of this CTS is to allow programs written in different languages communicate with each other easily.

Common Language Specification is specification of set of basic language features needed by the application. CLS also specifies rules for the language to be .NET compliant. Using CLS different .NET compliant languages can easily integrate with each other in terms of features.

The difference between CLS and CTS is, we can say that CTS is a subset of CLS. All the rules defined in CTS also must be followed in CLS. In addition there are more rules defined in CLS.

As a conclusion of whole discussion, CTS is a specification having rules about types used in .NET Framework and CLS is specification having rules about all features provided by the language including types. The purpose of both is same: Allow programs written in different languages to integrate and communicate with each other easily.
thank u
visit our site www.budnetdesign.com

Shanky11, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ranjeet_8 on: 1/30/2013 [Member] [MVP] Gold | Points: 25

Up
0
Down
CTS When different languages are integrated and want to communicate, it is certain that the languages have their own data types and different declaration styles. CTS define how these different variables are declared and used in run time. E.g. VB offers an Integer data type while C++ offers long data type. Using CTS, these data types are converted to System32 which itself a data type of CLS. CLS Any language(s) that intend to use the Common Language Infrastructure needs to communicate with other CLS-Compliant language. This communication is based on set of rules laid by CLS. These rules define a subset of CTS.

Refer this url:
http://onlydifferencefaqs.blogspot.in/2012/08/difference-between-cts-and-cls.html

Please Mark As Answer if this helps you

.

Shanky11, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Umar on: 1/31/2013 [Member] Starter | Points: 25

Up
0
Down
Hi Shanky,

CTS is Common Type System, which describes how types are declared, used and managed. CTS facilitate cross-language integration, type safety, and high performance code execution.Let say in VB you have the integer but in C++ you have long in order to communicate b/w this two languages Microsoft introduced
the System Called Common Type System


CLS is nothing but the specification were we defined the set of rules to serve the different languages, Here inheritance, polymorphism, exceptions, and other features plays the major role

Regards,
Umar

Umar Deen

Shanky11, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response