Represents an SI prefix, such as nano, micro, Mega, Giga etc.
Constructor | Description |
Full Usage:
SIPrefix(name, shortCut, exponent)
Parameters:
string
-
The name of the prefix.
shortCut : string
-
The short cut of the prefix.
exponent : int
-
The exponent associated with the prefix.
|
Deserialization constructor. Initializes a new instance of the SIPrefix class. Do not use this constructor unless you don't find the prefix in the list of known prefixes.
|
Instance member | Description |
Full Usage:
this.CanApplySIPrefix
Returns: bool
|
|
|
|
|
|
Full Usage:
this.Equals
Parameters:
obj
Returns: bool
Modifiers: abstract |
|
Full Usage:
this.Exponent
Returns: int
|
|
Full Usage:
this.FromSIUnit
Parameters:
float
Returns: float
Modifiers: abstract |
|
Full Usage:
this.GetHashCode
Returns: int
Modifiers: abstract |
|
Full Usage:
this.Name
Returns: string
Modifiers: abstract |
|
Full Usage:
this.ShortCut
Returns: string
Modifiers: abstract |
|
Full Usage:
this.ToSIUnit
Parameters:
float
Returns: float
Modifiers: abstract |
|
Static member | Description | ||
Multiplies two prefixes. If the result is not a known prefix, an InvalidOperationException is thrown. Consider using SIPrefix.FromMultiplication instead.
|
|||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
Returns a list with prefixes, for which the exponent is a multiple of 3, including the prefix SIPrefix.None.
|
||
|
|
||
|
|
||
Full Usage:
SIPrefix.MaxShortCutLength
Returns: int
|
Gets the maximum length of the shortcuts of any of the known prefixes.
|
||
|
|
||
|
|
||
|
|
||
Full Usage:
SIPrefix.MinShortCutLength
Returns: int
|
Gets the minimum length of the shortcuts of any of the known prefixes.
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
Full Usage:
SIPrefix.TryGetPrefixFromExponent(exponent, prefix)
Parameters:
int
-
The exponent.
prefix : byref<SIPrefix>
-
If sucessfull, returns the prefix.
Returns: bool
True if a known prefix with the given exponent was found; otherwise, false.
|
Try to get a known prefix with a given exponent.
|
||
Full Usage:
SIPrefix.TryGetPrefixFromShortcut(shortcut)
Parameters:
string
-
The shortcut of the prefix.
Returns: SIPrefix
The prefix to which the given shortcut belongs. Null if no such prefix could be found.
|
Try the get a prefix given the prefix'es shortcut.
|
||
|
|
||
|
|
||
|
|
||
|
|