ToPrefixString Method
Definition
- Assemblies
- Codebelt.Unitify.dll
ToPrefixString(IPrefixUnit)
Converts the unit to its prefix string representation.
public static string ToPrefixString(this IPrefixUnit unit)
Parameters
unitIPrefixUnitThe IPrefixUnit to extend.
Returns
- string
A string that represents that represents the first prefix greater or equal to one of the specified
unit.
Exceptions
- ArgumentOutOfRangeException
unitis not a Decimal (10) or Binary (2) prefix.- ArgumentNullException
unitcannot be null.