GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Microsoft  >  DataGrid
Go To First  |  Previous Question  |  Next Question 
 DataGrid  |  Question 9 of 14    Print  
what is the main differences between CTS , CLS

  
Total Answers and Comments: 3 Last Update: June 01, 2009     Asked by: knreddy221 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: PavanKumar
 
Hi,CTS And CLS are the major components through which the interoperability is acheived in .Net Framework. CLS ( Common Language Specification) specifies some set of rules for all the .Net Compilers. In this process it makes use of CTS(Common Type System) which is a subset OF CLS.CTS consists of types ( both Value-Type And Referrence Types). To make clear about the use of CTS: If we are declaring a INTEGER Type in VB.NetDim I As Integer If we are declaring the same INTEGER Type in C#.Netint i;both of these are converted to the form i as int32 so, irrespective of the language written in they are convereted to Intermediate Language which CLR can read and understand.

Above answer was rated as good by the following members:
sujeetkumartsr, Ag2703
November 19, 2006 00:00:10   #1  
PavanKumar        

RE: what is the main differences between CTS , CLS
Hi CTS And CLS are the major components through which the interoperability is acheived in .Net Framework. CLS ( Common Language Specification) specifies some set of rules for all the .Net Compilers. In this process it makes use of CTS(Common Type System) which is a subset OF CLS.CTS consists of types ( both Value-Type And Referrence Types). To make clear about the use of CTS: If we are declaring a INTEGER Type in VB.NetDim I As Integer If we are declaring the same INTEGER Type in C#.Netint i;both of these are converted to the form i as int32 so irrespective of the language written in they are convereted to Intermediate Language which CLR can read and understand.
 
Is this answer useful? Yes | NoAnswer is useful 2   Answer is not useful 0Overall Rating: +2    
January 02, 2007 03:55:05   #2  
sbehera02 Member Since: July 2006   Contribution: 18    

RE: what is the main differences between CTS , CLS

CTS-Common Type System

In order to communicate between two language CLR has CTC for example In C# it can an Int and in VB it LONG so interfacing betwwen is a difficult task so in dot net c# it is int and in VB it is System.ToInt32 it is a Datatype of CTS.

CLS-Common Language Specification

It is a set rule for Compiler writer to that all Dot net Language should follow that rules.

SuniL


 
Is this answer useful? Yes | No
June 01, 2009 09:43:40   #3  
albu77 Member Since: September 2007   Contribution: 9    

RE: what is the main differences between CTS , CLS
CTS is the specification of the types which are with .net defined in the plateform and not anymore langage dependant (since .net is language agnostic).

CLS is the published description of what should be done and followed for anyone whishing to design a .net compatible language .

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape