Description

The following table shows conversions from source types to destination types. The first column contains the source types. The remaining columns indicate the destination types the source may be converted to. An 'x' indicates the System.Convert class implements the conversion. [Note: The column headers correspond precisely, in order, to the source types in the first column, but have been abbreviated to fit.]

TypeBoolByteCharDTDecDouI16I32I64SBySinStrUI16UI32UI64
Booleanxx  xxxxxxxxxxx
Bytexxx xxxxxxxxxxx
Char xx   xxxx xxxx
DateTime   x       x   
Decimalxx  xxxxxxxxxxx
Doublexx  xxxxxxxxxxx
Int16xxx xxxxxxxxxxx
Int32xxx xxxxxxxxxxx
Int64xxx xxxxxxxxxxx
SBytexxx xxxxxxxxxxx
Singlexx  xxxxxxxxxxx
Stringxxxxxxxxxxxxxxx
UInt16xxx xxxxxxxxxxx
UInt32 ...

Get .NET Framework Standard Library Annotated Reference, Volume 1: Base Class Library and Extended Numerics Library now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.