Built-in types table (C# Reference)
The following table shows the keywords for built-in C# types, which are aliases of predefined types in the System namespace.
All of the types in the table, except
string, are referred to as simple types.
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 x = 123; System.Int32 y = 123;
Type stringType = typeof(string); Console.WriteLine(stringType.FullName); Type doubleType = typeof(System.Double); Console.WriteLine(doubleType.FullName); // Output: // System.String // System.Double
We'd love to hear your thoughts. Choose the type you'd like to provide:
Our feedback system is built on GitHub Issues. Read more on our blog.