Class PrefixTableExtensions
- Namespace
- Codebelt.Unitify
- Assembly
- Codebelt.Unitify.dll
Extension methods for the PrefixTable class.
public static class PrefixTableExtensions
- Inheritance
-
ObjectPrefixTableExtensions
Methods
AttoOrDefault(PrefixTable)
Returns the unit with the Atto prefix or the default value if not found.
public static IPrefixUnit AttoOrDefault(this PrefixTable prefixes)
Parameters
prefixes
PrefixTableThe table of multiple units.
Returns
- IPrefixUnit
The unit with the Atto prefix or the default value.
CentiOrDefault(PrefixTable)
Returns the unit with the Centi prefix or the default value if not found.
public static IPrefixUnit CentiOrDefault(this PrefixTable prefixes)
Parameters
prefixes
PrefixTableThe table of multiple units.
Returns
- IPrefixUnit
The unit with the Centi prefix or the default value.
DecaOrDefault(PrefixTable)
Returns the unit with the Deca prefix or the default value if not found.
public static IPrefixUnit DecaOrDefault(this PrefixTable prefixes)
Parameters
prefixes
PrefixTableThe table of multiple units.
Returns
- IPrefixUnit
The unit with the Deca prefix or the default value.
DeciOrDefault(PrefixTable)
Returns the unit with the Deci prefix or the default value if not found.
public static IPrefixUnit DeciOrDefault(this PrefixTable prefixes)
Parameters
prefixes
PrefixTableThe table of multiple units.
Returns
- IPrefixUnit
The unit with the Deci prefix or the default value.
ExaOrDefault(PrefixTable)
Returns the unit with the Exa prefix or the default value if not found.
public static IPrefixUnit ExaOrDefault(this PrefixTable prefixes)
Parameters
prefixes
PrefixTableThe table of multiple units.
Returns
- IPrefixUnit
The unit with the Exa prefix or the default value.
ExbiOrDefault(PrefixTable)
Returns the unit with the Exbi prefix or the default value if not found.
public static IPrefixUnit ExbiOrDefault(this PrefixTable prefixes)
Parameters
prefixes
PrefixTableThe table of multiple units.
Returns
- IPrefixUnit
The unit with the Exbi prefix or the default value.
FemtoOrDefault(PrefixTable)
Returns the unit with the Femto prefix or the default value if not found.
public static IPrefixUnit FemtoOrDefault(this PrefixTable prefixes)
Parameters
prefixes
PrefixTableThe table of multiple units.
Returns
- IPrefixUnit
The unit with the Femto prefix or the default value.
GibiOrDefault(PrefixTable)
Returns the unit with the Gibi prefix or the default value if not found.
public static IPrefixUnit GibiOrDefault(this PrefixTable prefixes)
Parameters
prefixes
PrefixTableThe table of multiple units.
Returns
- IPrefixUnit
The unit with the Gibi prefix or the default value.
GigaOrDefault(PrefixTable)
Returns the unit with the Giga prefix or the default value if not found.
public static IPrefixUnit GigaOrDefault(this PrefixTable prefixes)
Parameters
prefixes
PrefixTableThe table of multiple units.
Returns
- IPrefixUnit
The unit with the Giga prefix or the default value.
HectoOrDefault(PrefixTable)
Returns the unit with the Hecto prefix or the default value if not found.
public static IPrefixUnit HectoOrDefault(this PrefixTable prefixes)
Parameters
prefixes
PrefixTableThe table of multiple units.
Returns
- IPrefixUnit
The unit with the Hecto prefix or the default value.
KibiOrDefault(PrefixTable)
Returns the unit with the Kibi prefix or the default value if not found.
public static IPrefixUnit KibiOrDefault(this PrefixTable prefixes)
Parameters
prefixes
PrefixTableThe table of multiple units.
Returns
- IPrefixUnit
The unit with the Kibi prefix or the default value.
KiloOrDefault(PrefixTable)
Returns the unit with the Kilo prefix or the default value if not found.
public static IPrefixUnit KiloOrDefault(this PrefixTable prefixes)
Parameters
prefixes
PrefixTableThe table of multiple units.
Returns
- IPrefixUnit
The unit with the Kilo prefix or the default value.
MebiOrDefault(PrefixTable)
Returns the unit with the Mebi prefix or the default value if not found.
public static IPrefixUnit MebiOrDefault(this PrefixTable prefixes)
Parameters
prefixes
PrefixTableThe table of multiple units.
Returns
- IPrefixUnit
The unit with the Mebi prefix or the default value.
MegaOrDefault(PrefixTable)
Returns the unit with the Mega prefix or the default value if not found.
public static IPrefixUnit MegaOrDefault(this PrefixTable prefixes)
Parameters
prefixes
PrefixTableThe table of multiple units.
Returns
- IPrefixUnit
The unit with the Mega prefix or the default value.
MicroOrDefault(PrefixTable)
Returns the unit with the Micro prefix or the default value if not found.
public static IPrefixUnit MicroOrDefault(this PrefixTable prefixes)
Parameters
prefixes
PrefixTableThe table of multiple units.
Returns
- IPrefixUnit
The unit with the Micro prefix or the default value.
MilliOrDefault(PrefixTable)
Returns the unit with the Milli prefix or the default value if not found.
public static IPrefixUnit MilliOrDefault(this PrefixTable prefixes)
Parameters
prefixes
PrefixTableThe table of multiple units.
Returns
- IPrefixUnit
The unit with the Milli prefix or the default value.
NanoOrDefault(PrefixTable)
Returns the unit with the Nano prefix or the default value if not found.
public static IPrefixUnit NanoOrDefault(this PrefixTable prefixes)
Parameters
prefixes
PrefixTableThe table of multiple units.
Returns
- IPrefixUnit
The unit with the Nano prefix or the default value.
PebiOrDefault(PrefixTable)
Returns the unit with the Pebi prefix or the default value if not found.
public static IPrefixUnit PebiOrDefault(this PrefixTable prefixes)
Parameters
prefixes
PrefixTableThe table of multiple units.
Returns
- IPrefixUnit
The unit with the Pebi prefix or the default value.
PetaOrDefault(PrefixTable)
Returns the unit with the Peta prefix or the default value if not found.
public static IPrefixUnit PetaOrDefault(this PrefixTable prefixes)
Parameters
prefixes
PrefixTableThe table of multiple units.
Returns
- IPrefixUnit
The unit with the Peta prefix or the default value.
PicoOrDefault(PrefixTable)
Returns the unit with the Pico prefix or the default value if not found.
public static IPrefixUnit PicoOrDefault(this PrefixTable prefixes)
Parameters
prefixes
PrefixTableThe table of multiple units.
Returns
- IPrefixUnit
The unit with the Pico prefix or the default value.
QuectoOrDefault(PrefixTable)
Returns the unit with the Quecto prefix or the default value if not found.
public static IPrefixUnit QuectoOrDefault(this PrefixTable prefixes)
Parameters
prefixes
PrefixTableThe table of multiple units.
Returns
- IPrefixUnit
The unit with the Quecto prefix or the default value.
QuettaOrDefault(PrefixTable)
Returns the unit with the Quetta prefix or the default value if not found.
public static IPrefixUnit QuettaOrDefault(this PrefixTable prefixes)
Parameters
prefixes
PrefixTableThe table of multiple units.
Returns
- IPrefixUnit
The unit with the Quetta prefix or the default value.
RonnaOrDefault(PrefixTable)
Returns the unit with the Ronna prefix or the default value if not found.
public static IPrefixUnit RonnaOrDefault(this PrefixTable prefixes)
Parameters
prefixes
PrefixTableThe table of multiple units.
Returns
- IPrefixUnit
The unit with the Ronna prefix or the default value.
RontoOrDefault(PrefixTable)
Returns the unit with the Ronto prefix or the default value if not found.
public static IPrefixUnit RontoOrDefault(this PrefixTable prefixes)
Parameters
prefixes
PrefixTableThe table of multiple units.
Returns
- IPrefixUnit
The unit with the Ronto prefix or the default value.
TebiOrDefault(PrefixTable)
Returns the unit with the Tebi prefix or the default value if not found.
public static IPrefixUnit TebiOrDefault(this PrefixTable prefixes)
Parameters
prefixes
PrefixTableThe table of multiple units.
Returns
- IPrefixUnit
The unit with the Tebi prefix or the default value.
TeraOrDefault(PrefixTable)
Returns the unit with the Tera prefix or the default value if not found.
public static IPrefixUnit TeraOrDefault(this PrefixTable prefixes)
Parameters
prefixes
PrefixTableThe table of multiple units.
Returns
- IPrefixUnit
The unit with the Tera prefix or the default value.
YobiOrDefault(PrefixTable)
Returns the unit with the Yobi prefix or the default value if not found.
public static IPrefixUnit YobiOrDefault(this PrefixTable prefixes)
Parameters
prefixes
PrefixTableThe table of multiple units.
Returns
- IPrefixUnit
The unit with the Yobi prefix or the default value.
YoctoOrDefault(PrefixTable)
Returns the unit with the Yocto prefix or the default value if not found.
public static IPrefixUnit YoctoOrDefault(this PrefixTable prefixes)
Parameters
prefixes
PrefixTableThe table of multiple units.
Returns
- IPrefixUnit
The unit with the Yocto prefix or the default value.
YottaOrDefault(PrefixTable)
Returns the unit with the Yotta prefix or the default value if not found.
public static IPrefixUnit YottaOrDefault(this PrefixTable prefixes)
Parameters
prefixes
PrefixTableThe table of multiple units.
Returns
- IPrefixUnit
The unit with the Yotta prefix or the default value.
ZebiOrDefault(PrefixTable)
Returns the unit with the Zebi prefix or the default value if not found.
public static IPrefixUnit ZebiOrDefault(this PrefixTable prefixes)
Parameters
prefixes
PrefixTableThe table of multiple units.
Returns
- IPrefixUnit
The unit with the Zebi prefix or the default value.
ZeptoOrDefault(PrefixTable)
Returns the unit with the Zepto prefix or the default value if not found.
public static IPrefixUnit ZeptoOrDefault(this PrefixTable prefixes)
Parameters
prefixes
PrefixTableThe table of multiple units.
Returns
- IPrefixUnit
The unit with the Zepto prefix or the default value.
ZettaOrDefault(PrefixTable)
Returns the unit with the Zetta prefix or the default value if not found.
public static IPrefixUnit ZettaOrDefault(this PrefixTable prefixes)
Parameters
prefixes
PrefixTableThe table of multiple units.
Returns
- IPrefixUnit
The unit with the Zetta prefix or the default value.