Aliases of built-in types

Built-In Types Table

The following table shows the keywords for built-in C# types, which are aliases of predefined types in the System namespaces.

C# Type.NET Framework Type
boolSystem.Boolean
byteSystem.Byte
sbyteSystem.SByte
charSystem.Char
decimalSystem.Decimal
doubleSystem.Double
floatSystem.Single
intSystem.Int32
uintSystem.UInt32
longSystem.Int64
ulongSystem.UInt64
objectSystem.Object
shortSystem.Int16
ushortSystem.UInt16
stringSystem.String

The C# type keywords and their aliases are interchangeable. For example, you can declare an integer variable by using either of the following declarations:

int number = 123;
System.Int32 number = 123;