Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Nested static class: RT.Serialization.ExactConvert.ToNullable

Summary

Contains static methods to perform an exact conversion to a nullable type. These methods return null only if the input is null. A failed conversion results in an ExactConvertException.

Static methods

BigInteger?
BigInteger(object value)
Converts the specified object to a nullable BigInteger. Returns null if value is null. Throws an ExactConvertException if the object cannot be converted exactly.
bool?
Bool(object value)
Converts the specified object to a nullable bool. Returns null if value is null. Throws an ExactConvertException if the object cannot be converted exactly.
byte?
Byte(object value)
Converts the specified object to a nullable byte. Returns null if value is null. Throws an ExactConvertException if the object cannot be converted exactly.
char?
Char(object value)
Converts the specified object to a nullable char. Returns null if value is null. Throws an ExactConvertException if the object cannot be converted exactly.
DateTime?
DateTime(object value)
Converts the specified object to a nullable DateTime. Returns null if value is null. Throws an ExactConvertException if the object cannot be converted exactly.
decimal?
Decimal(object value)
Converts the specified object to a nullable decimal. Returns null if value is null. Throws an ExactConvertException if the object cannot be converted exactly.
double?
Double(object value)
Converts the specified object to a nullable double. Returns null if value is null. Throws an ExactConvertException if the object cannot be converted exactly.
float?
Float(object value)
Converts the specified object to a nullable float. Returns null if value is null. Throws an ExactConvertException if the object cannot be converted exactly.
int?
Int(object value)
Converts the specified object to an nullable int. Returns null if value is null. Throws an ExactConvertException if the object cannot be converted exactly.
long?
Long(object value)
Converts the specified object to a nullable long. Returns null if value is null. Throws an ExactConvertException if the object cannot be converted exactly.
sbyte?
SByte(object value)
Converts the specified object to an nullable sbyte. Returns null if value is null. Throws an ExactConvertException if the object cannot be converted exactly.
short?
Short(object value)
Converts the specified object to a nullable short. Returns null if value is null. Throws an ExactConvertException if the object cannot be converted exactly.
string
String(object value)
Converts the specified object to a nullable string. Returns null if value is null. Throws an ExactConvertException if the object cannot be converted exactly.
uint?
UInt(object value)
Converts the specified object to a nullable uint. Returns null if value is null. Throws an ExactConvertException if the object cannot be converted exactly.
ulong?
ULong(object value)
Converts the specified object to a nullable ulong. Returns null if value is null. Throws an ExactConvertException if the object cannot be converted exactly.
ushort?
UShort(object value)
Converts the specified object to a nullable ushort. Returns null if value is null. Throws an ExactConvertException if the object cannot be converted exactly.