SIPrefix Class |
public class SIPrefix : IUnit, IEquatable<SIPrefix>, IComparable<SIPrefix>
The SIPrefix type exposes the following members.
| Name | Description | |
|---|---|---|
| SIPrefix | 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. |
| Name | Description | |
|---|---|---|
| Atto | Gets the 'atto' prefix instance (exponent -18). | |
| CanApplySIPrefix | Indicates whether this unit can have an SI prefix applied to it. | |
| Centi | Gets the 'centi' prefix instance (exponent -2). | |
| Deca | Gets the 'deca' prefix instance (exponent 1). | |
| Deci | Gets the 'deci' prefix instance (exponent -1). | |
| Exa | Gets the 'exa' prefix instance (exponent 18). | |
| Exponent | Gets the exponent of this prefix (power of ten). | |
| Femto | Gets the 'femto' prefix instance (exponent -15). | |
| Giga | Gets the 'giga' prefix instance (exponent 9). | |
| Hecto | Gets the 'hecto' prefix instance (exponent 2). | |
| Kilo | Gets the 'kilo' prefix instance (exponent 3). | |
| LargestPrefix | Gets the largest known prefix (highest exponent). | |
| LisOfPrefixesWithMultipleOf3Exponent | Returns a list with prefixes, for which the exponent is a multiple of 3, including the prefix None. | |
| ListWithAllKnownPrefixes | Returns a list with all known prefixes, including the prefix None. | |
| ListWithNonePrefixOnly | Returns a list that contains only the prefix None. | |
| MaxShortCutLength | Gets the maximum length of the shortcuts of any of the known prefixes. | |
| Mega | Gets the 'mega' prefix instance (exponent 6). | |
| Micro | Gets the 'micro' prefix instance (exponent -6). | |
| Milli | Gets the 'milli' prefix instance (exponent -3). | |
| MinShortCutLength | Gets the minimum length of the shortcuts of any of the known prefixes. | |
| Name | Full name of the unit. | |
| Nano | Gets the 'nano' prefix instance (exponent -9). | |
| None | Gets the 'none' prefix instance (exponent 0). | |
| Peta | Gets the 'peta' prefix instance (exponent 15). | |
| Pico | Gets the 'pico' prefix instance (exponent -12). | |
| Quecto | Gets the 'quecto' prefix instance (exponent -30). | |
| Quetta | Gets the 'quetta' prefix instance (exponent 30). | |
| Ronna | Gets the 'ronna' prefix instance (exponent 27). | |
| Ronto | Gets the 'ronto' prefix instance (exponent -27). | |
| ShortCut | Usual shortcut of the unit. | |
| SmallestPrefix | Gets the smallest known prefix (lowest exponent). | |
| Tera | Gets the 'tera' prefix instance (exponent 12). | |
| Yocto | Gets the 'yocto' prefix instance (exponent -24). | |
| Yotta | Gets the 'yotta' prefix instance (exponent 24). | |
| Zepto | Gets the 'zepto' prefix instance (exponent -21). | |
| Zetta | Gets the 'zetta' prefix instance (exponent 21). |
| Name | Description | |
|---|---|---|
| CompareTo | Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. | |
| Equals(Object) | Determines whether the specified object is equal to the current object. (Overrides ObjectEquals(Object)) | |
| Equals(SIPrefix) | Indicates whether the current object is equal to another object of the same type. | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
| FromDivision | Divides two prefixes and returns the prefix and any remaining factor. | |
| FromMultiplication | Multiplies two prefixes and returns the prefix and any remaining factor. | |
| FromSIUnit | Converts x (in SI units) to the corresponding value in this unit. | |
| GetHashCode | Serves as the default hash function. (Overrides ObjectGetHashCode) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| ToSIUnit | Converts x to the corresponding SI unit. | |
| ToString | Returns a string that represents the current object. (Inherited from Object) | |
| TryGetPrefixFromExponent | Try to get a known prefix with a given exponent. | |
| TryGetPrefixFromShortcut | Try to get a prefix given the prefix's shortcut. |
| Name | Description | |
|---|---|---|
| Multiply(SIPrefix, SIPrefix) | Multiplies two prefixes. If the result is not a known prefix, an InvalidOperationException is thrown. Consider using FromMultiplication(SIPrefix, SIPrefix) instead. |