C# Predefined Type Taxonomy

Predefined types in C#

The predefined types in C# are:

  • Value types
    • Numeric
      • Signed integer (sbyte, short, int, long)
      • Unsigned integer (byte, ushort, uint, ulong)
      • Real number (float, double, decimal)
    • Logical (bool)
    • Character (char)
  • Reference types
    • String (string)
    • Object (object)

Predefined types alias

Predefined types in C# alias Framework types in the System namespace. There is only a syntactic difference between these two statements:


      int i = 5; 
      System.Int32 i = 5; 




















Home »
  C# Tutorial »
    Data Types »




C# Data Types
Bool
Byte
Char
Decimal
Double
Float
Integer
Long
Short
String
C# Array
Array Example
Byte Array
C# Standard Data Type Format
BigInteger
Complex
Currency
DateTime
DateTimeOffset
DateTime Format Parse Convert
TimeSpan
TimeZone
Enum
Null
tuple
var