all groups > dotnet clr > july 2007 >
You're in the

dotnet clr

group:

Why to use language-specific CTS datatype keywords?


Why to use language-specific CTS datatype keywords? yapann
7/3/2007 4:03:26 PM
dotnet clr:
Hi,
Why actually to use language-specific keywords for common CTS datatypes -
like 'string' for 'String'?

Thx



Re: Why to use language-specific CTS datatype keywords? Göran_Andersson
7/7/2007 2:30:09 AM
[quoted text, click to view]

Some of them are easier to read, like int instead of Int32.

In some cases you can only use the language-specific keywords, like in:

enum SomeValues : int {
Nine = 9,
FourtyTwo = 42
}

Here you can't use Int32 instead of int.

--
Göran Andersson
_____
AddThis Social Bookmark Button