MuEpanetBridgeBaseGetUnit Method

Gets a unit with conversion based on item type, applying user overrides if available

Definition

Namespace: DHI.Mike1D.ResultDataAccess.Epanet
Assembly: DHI.Mike1D.ResultDataAccess (in DHI.Mike1D.ResultDataAccess.dll) Version: 25.0.0.0 (11.1.1.1111)
C#
protected eumUnit GetUnit(
	eumItem itemType,
	Func<int, eumUnit> unitGetter,
	int originalOption,
	int targetOption,
	bool original = true
)

Parameters

itemType  eumItem
The EUM item type
unitGetter  FuncInt32, eumUnit
Function to get the unit from an option value
originalOption  Int32
The original unit option from the file
targetOption  Int32
The target unit option for conversion
original  Boolean  (Optional)
If true, returns the original unit without conversion

Return Value

eumUnit
The appropriate eumUnit

See Also