MuEpanetBridgeBaseGetUnit Method
Gets a unit with conversion based on item type, applying user overrides if available
Namespace: DHI.Mike1D.ResultDataAccess.EpanetAssembly: DHI.Mike1D.ResultDataAccess (in DHI.Mike1D.ResultDataAccess.dll) Version: 25.0.0.0 (11.1.1.1111)
protected eumUnit GetUnit(
eumItem itemType,
Func<int, eumUnit> unitGetter,
int originalOption,
int targetOption,
bool original = true
)
- 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
eumUnitThe appropriate eumUnit