UnitsExtensionsGetUnitInstance Method |
Gets the unit instance for a given type.
Namespace: Altaxo.UnitsAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static IUnit GetUnitInstance(
Type type
)
Parameters
- type Type
- The type of the unit.
Return Value
IUnitThe unit instance with the given type. It is presumed that the unit class has either a static property 'Instance' or a parameterless constructor.
Exceptions See Also