C# Class Automatak.Simulator.Commons.SafeConvert

显示文件 Open project: automatak/dnp3-simulator

Public Methods

Method Description
ToDouble ( Decimal value ) : System.Double
ToInt16 ( Decimal value ) : Int16
ToInt32 ( Decimal value ) : Int32
ToSingle ( Decimal value ) : System.Single

Method Details

ToDouble() public static method

public static ToDouble ( Decimal value ) : System.Double
value Decimal
return System.Double

ToInt16() public static method

public static ToInt16 ( Decimal value ) : Int16
value Decimal
return System.Int16

ToInt32() public static method

public static ToInt32 ( Decimal value ) : Int32
value Decimal
return System.Int32

ToSingle() public static method

public static ToSingle ( Decimal value ) : System.Single
value Decimal
return System.Single