It will be a 32 bit integer. The type is consistent across platforms.

Signature
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
Thanks Guys,
OK, I guess the one thing that may not be the same is that different
programming languages may map the same keyword to a different CLR type.
For example, perhaps Cobol.Net (or whatever) could map the keyword "int" to
System.Int64 rather than to System.Int32.
I realize that this observation is beyond the scope of the posters question
but I just wanted to point it out, I remember reading somewhere someone
suggesting to use the CLR type names rather than the aliases for a couple of
reasons and I think one of the was what I mentioned above.
In other words, using the CLR type names is supposed to be better for
clarity (even for people coming form different programming languages)
although I believe Microsoft like us to use the aliases better.
Cheers.
> It will be a 32 bit integer. The type is consistent across platforms.
>
[quoted text clipped - 5 lines]
>>
>> Just curious, thanks.
Ian Semmel - 09 Sep 2007 20:31 GMT
C# actually defines what an int is (32-bit signed integer).
C++ and C don't, and it is up to the particular compiler implementation
to define them.
> -----Original Message-----
> From: Rene [mailto:a@b.com]
[quoted text clipped - 41 lines]
> >>
> >> Just curious, thanks.
Arne Vajhøj - 10 Sep 2007 01:38 GMT
> OK, I guess the one thing that may not be the same is that different
> programming languages may map the same keyword to a different CLR type.
[quoted text clipped - 10 lines]
> clarity (even for people coming form different programming languages)
> although I believe Microsoft like us to use the aliases better.
Different programming languages has completely different data types.
Cobol has data types like:
01 NUMBER-1 PIC 9(6) PACKED-DECIMAL.
01 NUMBER-2 PIC 9(6) PACKED-DECIMAL.
01 RESULT PIC 9(6) DISPLAY.
01 V PIC 9(4)V99 DISPLAY.
01 VV PIC ZZZ9.99 DISPLAY.
01 POS PIC S9(4) DISPLAY VALUE 12.
01 NEG PIC S9(4) DISPLAY VALUE -12.
01 S PIC X(10).
01 S2 PIC XX.
I think they will have bigger problems than int versus int32.
Arne
Jon Skeet [C# MVP] - 10 Sep 2007 07:34 GMT
> OK, I guess the one thing that may not be the same is that different
> programming languages may map the same keyword to a different CLR type.
[quoted text clipped - 6 lines]
> suggesting to use the CLR type names rather than the aliases for a couple of
> reasons and I think one of the was what I mentioned above.
That's a good reason to use CLR names in method names - ReadInt32,
ReadInt64 etc. It's not a good reason to
> In other words, using the CLR type names is supposed to be better for
> clarity (even for people coming form different programming languages)
> although I believe Microsoft like us to use the aliases better.
People who are reading/writing C# should learn C# - trying to make code
readable for non-C# programmers seems like a non-starter to me,
especially as it's likely to make the code *less* readable for C#
coders (who in most cases are likely to be the bulk of the readership).

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too