public static short ToInt16(DateTime value)
{
return ((IConvertible)value).ToInt16(null);
}
Convert::ToInt16 ( String value ) : short | |
Convert::ToInt16 ( String value, IFormatProvider provider ) : short | |
Convert::ToInt16 ( String value, int fromBase ) : short | |
Convert::ToInt16 ( bool value ) : short | |
Convert::ToInt16 ( byte value ) : short | |
Convert::ToInt16 ( char value ) : short | |
Convert::ToInt16 ( decimal value ) : short | |
Convert::ToInt16 ( double value ) : short | |
Convert::ToInt16 ( float value ) : short | |
Convert::ToInt16 ( int value ) : short | |
Convert::ToInt16 ( long value ) : short | |
Convert::ToInt16 ( object value ) : short | |
Convert::ToInt16 ( object value, IFormatProvider provider ) : short | |
Convert::ToInt16 ( sbyte value ) : short | |
Convert::ToInt16 ( short value ) : short | |
Convert::ToInt16 ( uint value ) : short | |
Convert::ToInt16 ( ulong value ) : short | |
Convert::ToInt16 ( ushort value ) : short |
private static void RegisterUInt64Conversions( ITypeConverterRegistry registry) { registry.Register <ulong, byte>(from => SysConv.ToByte(from)); registry.Register <ulong, short>(from => SysConv.ToInt16(from)); registry.Register <ulong, int>(from => SysConv.ToInt32(from)); registry.Register <ulong, long>(from => SysConv.ToInt64(from)); registry.Register <ulong, ushort>(from => SysConv.ToUInt16(from)); registry.Register <ulong, uint>(from => SysConv.ToUInt32(from)); registry.Register <ulong, decimal>(from => SysConv.ToDecimal(from)); registry.Register <ulong, float>(from => SysConv.ToSingle(from)); registry.Register <ulong, double>(from => SysConv.ToDouble(from)); registry.Register <ulong, string>(from => from.ToString(CultureInfo.InvariantCulture)); }