The Common Type System (CTS) is a component of the CLR and provides a common set of data types, each having a common set of behaviors. In Visual basic, for example, the String data type maps to the CTS System.String class. Therefore, if a Jscript .NET client needs to communicate with a component implemented in VB.NET, the client doesn’t have to do any additional work to do any additional work to exchange information because it’s using a type common to both JScript.NET and VB.NET. The CTS eliminate many interoperability problems that exist outside .NET.
.NET programming language take advantage of the CTS by enabling developers to use their language’s built – in data types – the .NET compilers convert the native data types’ into their equivalent CTS types at compile time. Developers can also use CTS types directly in their code if they wish.
System.Byte - Unsigned 8 – bit integer ranging in value from 0 to positive 255
System.Int16 – Signed 16 – bit integer capable of holding values from negative 32768 to positive 32767
System.Int32 – Signed 32 – bit integer having a range from negative 2,147,483,648 to positive 2,147,483,647
System.Int64 – Signed 64 – bit integer having a range from negative 9,223,372,036,854,755,808 to positive 9,223,372,036,854,755,807
System.Single – Single – precision 32 – bit floating – point number.
System.Double – Double – precision 64 bit floating – point number.
System.Decimal – Signed 96 – bit floating – point value with up to 28 digits on either side of the decimal
System.Char – 16 – bit Unicode character (unsigned values)
System.String – Sequence of Unicode characters with a capacity of about two billion characters
System.Object – 32 – bit address, referencing an instance of a class
System.Boolean – Unsigned 32 – bit number that may contain only 0 (False) or 1 (True)
Friday, March 5, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment