C# Language Aliases of built-in types Built-In Types Table

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Example

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;


Got any C# Language Question?