QuantityGuessUnitFromString Method

Try guess an eum unit from a string.

For this to work, be sure to use a string matching the Description ("Desc") of an eumUnit.

If the string does not exactly any unit, a set of common abbreviations are tried.

If no success, eumUUnitUndefined is returned.

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 static eumUnit GuessUnitFromString(
	string s
)

Parameters

s  String

[Missing <param name="s"/> documentation for "M:DHI.Mike1D.Generic.Quantity.GuessUnitFromString(System.String)"]

Return Value

eumUnit

[Missing <returns> documentation for "M:DHI.Mike1D.Generic.Quantity.GuessUnitFromString(System.String)"]

See Also