.Net is collection of multiple languages.CLS provides a set of rules and object oriented programming model to be followed by every .net language.when a language follows these set of rules and object oriented programming model then the language said to be CLS compliant i:e the .net language otherwise the language will not be treated as .net language
Common Type System(CTS):In .net every data type is internally represented as a class or structure and they class or structure of the data type provides the methods you can on that type
For example string data type in .net is internally representing with the name "String" and is string class provides the methods like ToLower() using which u ca convert the string to Lowercase and UpperCase
All these classes and structures related to data types are available in CTS even every .net language is providing its own keywords for the data type,internally all .net languages will use the same classes and structures available in CTS
For examples vb.net provides the keyword Integer for storing integer data and C# provides the keyword Int for storing integer data .Buy internally both vb and c# will use the structure in t32 available in CTS. when a variable is declared integer without CTS it is not possible to declare variables in /net application
Common Type System(CTS):In .net every data type is internally represented as a class or structure and they class or structure of the data type provides the methods you can on that type
For example string data type in .net is internally representing with the name "String" and is string class provides the methods like ToLower() using which u ca convert the string to Lowercase and UpperCase
All these classes and structures related to data types are available in CTS even every .net language is providing its own keywords for the data type,internally all .net languages will use the same classes and structures available in CTS
For examples vb.net provides the keyword Integer for storing integer data and C# provides the keyword Int for storing integer data .Buy internally both vb and c# will use the structure in t32 available in CTS. when a variable is declared integer without CTS it is not possible to declare variables in /net application
No comments:
Post a Comment