Click or drag to resize

IUnitProvider Interface

An IUserUnitProvider is used by DiagnosticsValue to convert values into user units.

Namespace:  DHI.Mike1D.Generic
Assembly:  DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax
public interface IUnitProvider

The IUnitProvider type exposes the following members.

Methods
  NameDescription
Public methodGetUserUnit(eumItem)
Return user unit for EUM item type
Public methodGetUserUnit(String, eumItem)
Return user unit
Top
Extension Methods
  NameDescription
Public Extension MethodGetUnitConversionFactor(eumItem, eumUnit)Overloaded.
Get a unit conversion factor for EUM quantity
(Defined by Util.)
Public Extension MethodGetUnitConversionFactor(eumItem, eumUnit, eumUnit)Overloaded.
Get a unit conversion factor for EUM quantity
(Defined by Util.)
Public Extension MethodGetUserUnitOrDefault
Get a unit conversion factor for EUM quantity
(Defined by Util.)
Public Extension MethodUpdateQuantityUserUnit
Update quantity with user unit, if user unit is available
(Defined by Util.)
Public Extension MethodUserUnitToString
Return a unit as a string
(Defined by Util.)
Public Extension MethodValueInUserUnit(eumItem, Double)Overloaded.
Convert a value to user unit and return as a string
(Defined by Util.)
Public Extension MethodValueInUserUnit(eumQuantity, Double)Overloaded.
Convert a value to user unit and return as a string
(Defined by Util.)
Public Extension MethodValueInUserUnitToString
Convert a value to user unit and return as a string
(Defined by Util.)
Public Extension MethodValueInUserUnitToStringWithUnit
Convert a value to user unit and return as a string
(Defined by Util.)
Top
See Also