System.TypeCode Enumeration

[System.Runtime.InteropServices.ComVisible(true)]

public enum**TypeCode**

public enum

Call the IConvertible.GetTypeCode method on classes that implement the IConvertible interface to obtain the type code for an instance of that class.

Otherwise, call an object's object.GetType method to obtain its Type object, then call the Type object's Type.GetTypeCode(Type) method to obtain the object's type code.

Member Name | Description |
---|---|

Boolean |
A simple type representing Boolean values of true or false. |

Byte |
An integral type representing unsigned 8-bit integers with values between 0 and 255. |

Char |
An integral type representing unsigned 16-bit integers with values between 0 and 65535. The set of possible values for the TypeCode.Char type corresponds to the Unicode character set. |

DateTime |
A type representing a date and time value. |

DBNull |
A database null (column) value. |

Decimal |
A simple type representing values ranging from 1.0 x 10 |

Double |
A floating point type representing values ranging from approximately 5.0 x 10 |

Empty |
A null reference. |

Int16 |
An integral type representing signed 16-bit integers with values between -32768 and 32767. |

Int32 |
An integral type representing signed 32-bit integers with values between -2147483648 and 2147483647. |

Int64 |
An integral type representing signed 64-bit integers with values between -9223372036854775808 and 9223372036854775807. |

Object |
A general type representing any reference or value type not explicitly represented by another TypeCode. |

SByte |
An integral type representing signed 8-bit integers with values between -128 and 127. |

Single |
A floating point type representing values ranging from approximately 1.5 x 10 |

String |
A sealed class type representing Unicode character strings. |

UInt16 |
An integral type representing unsigned 16-bit integers with values between 0 and 65535. |

UInt32 |
An integral type representing unsigned 32-bit integers with values between 0 and 4294967295. |

UInt64 |
An integral type representing unsigned 64-bit integers with values between 0 and 18446744073709551615. |