UBGUnitProvider Class

UBG unit provider. Uses the EUM Unit Base Group (UBG) system to determine a unit for a given item.

Definition

Namespace: DHI.Mike1D.Generic
Assembly: DHI.Mike1D.Generic (in DHI.Mike1D.Generic.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public class UBGUnitProvider : IUnitProvider
Inheritance
Object    UBGUnitProvider
Implements
IUnitProvider

Constructors

UBGUnitProviderInitializes a new instance of the UBGUnitProvider class

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
GetUserUnit(eumItem) Return user unit for EUM item type
GetUserUnit(String, eumItem) Return user unit
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

Extension Methods

AsString Return value as a string, in proper unit
(Defined by Util)
GetUnitConversionFactor Get a unit conversion factor for EUM quantity
(Defined by Util)
GetUnitConversionFactor Get a unit conversion factor for EUM quantity
(Defined by Util)
GetUserUnitOrDefault Get a unit conversion factor for EUM quantity
(Defined by Util)
UpdateQuantityUserUnit Update quantity with user unit, if user unit is available
(Defined by Util)
UserUnitToString Return a unit as a string
(Defined by Util)
ValueInUserUnit Convert a value to user unit and return as a string
(Defined by Util)
ValueInUserUnit Convert a value to user unit and return as a string
(Defined by Util)
ValueInUserUnitToString Convert a value to user unit and return as a string
(Defined by Util)
ValueInUserUnitToString Convert a value to user unit and return as a string
(Defined by Util)
ValueInUserUnitToStringWithUnit Convert a value to user unit and return as a string
(Defined by Util)
ValueInUserUnitToStringWithUnit Convert a value to user unit and return as a string
(Defined by Util)

See Also