■データ型
| C# | VB.NET | .NET型 | bit長 | 範囲 |
|---|---|---|---|---|
| sbyte | SByte | System.SByte | 8 | -128~127 |
| byte | Byte | System.Byte | 8 | 0~255 |
| short | Short | System.Int16 | 16 | -32768~32767 |
| ushort | UShort | System.UInt16 | 16 | 0~65535 |
| int | Integer | System.Int32 | 32 | -2147483648~2147483647 |
| uint | UInteger | System.UInt32 | 32 | 0~4294967295 |
| long | Long | System.Int64 | 64 | -9223372036854775808~ 9223372036854775807 |
| ulong | ULong | System.UInt64 | 64 | 0~18446744073709551615 |
| float | Single | System.Single | 32 | -3.40282347E+38~3.40282347E+38 |
| double | Double | System.Double | 64 | -1.7976931348623157E+308~ 1.7976931348623157E+308 |
| decimal | Decimal | System.Decimal | 128 | -79228162514264337593543950335~ 79228162514264337593543950335 有効桁数28~29(少数可) |
| char | Char | System.Char | 16 | U+0000~U+ffff(Unicode) |
| bool | Boolean | System.Boolean | - | true or false |
| string | String | System.String | - | - |
| DateTime | Date | System.DateTime | - | - |
| object | Object | System.Object | - | - |
■環境
OS:Microsoft Windows XP Home Edition 日本語 Service Pack 3
IDE:Microsoft Visual Studio 2005 Standard Edition 日本語 Service Pack 1
Framework:Microsoft .NET Framework Version 2.0 SP2
■関連投稿
(C#, VB.NET)サフィックス(接尾語)