C# Class hobd.UnitsConverter

Datei anzeigen Open project: cail/hobd Class Usage Examples

Public Properties

Property Type Description
DefaultNumberFormat System.Globalization.NumberFormatInfo

Public Methods

Method Description
Convert ( string fromUnits, double value ) : double
Convert ( string fromUnits, string toUnits, double value ) : double
ConvertUnits ( string fromUnits ) : string
NeedConversion ( string fromUnits ) : bool
UnitsConverter ( string units ) : System
UpdateUnitTypes ( ) : void

Private Methods

Method Description
UnitsConverter ( ) : System

Method Details

Convert() public method

public Convert ( string fromUnits, double value ) : double
fromUnits string
value double
return double

Convert() public static method

public static Convert ( string fromUnits, string toUnits, double value ) : double
fromUnits string
toUnits string
value double
return double

ConvertUnits() public method

public ConvertUnits ( string fromUnits ) : string
fromUnits string
return string

NeedConversion() public method

public NeedConversion ( string fromUnits ) : bool
fromUnits string
return bool

UnitsConverter() public method

public UnitsConverter ( string units ) : System
units string
return System

UpdateUnitTypes() public static method

public static UpdateUnitTypes ( ) : void
return void

Property Details

DefaultNumberFormat public_oe static_oe property

public static NumberFormatInfo,System.Globalization DefaultNumberFormat
return System.Globalization.NumberFormatInfo