CanConvert

All the CanConvert methods return true if the input parameter can be converted to the specified data type, and false otherwise.

General overloads:

  1. CanConvert.ToWhateverType(Object input, ICultureAccessor culture): WhateverType
  2. CanConvert.ToWhateverType(Object input): WhateverType

CanConvert.ToBool

CanConvert.ToByte

CanConvert.ToChar

CanConvert.ToDecimal

CanConvert.ToDouble

CanConvert.ToGlobalTime

CanConvert.ToInt16

CanConvert.ToInt32

CanConvert.ToInt64

CanConvert.ToLocalTime

CanConvert.ToSByte

CanConvert.ToSingle

CanConvert.ToUInt16

CanConvert.ToUInt32

CanConvert.ToUInt64