Class StorageCapacity
Provides a way to represent a table of both binary and metric prefixes that precedes a unit of measure optimized for storage capacity measurement standards.
Implements
Inherited Members
Namespace: Cuemon
Assembly: Cuemon.Core.dll
Syntax
public abstract class StorageCapacity : MultipleTable, IEquatable<IUnit>
Constructors
| Improve this Doc View SourceStorageCapacity(IPrefixUnit, Action<StorageCapacityOptions>)
Initializes a new instance of the StorageCapacity class.
Declaration
protected StorageCapacity(IPrefixUnit unit, Action<StorageCapacityOptions> setup = null)
Parameters
Type | Name | Description |
---|---|---|
IPrefixUnit | unit | The instance of an object that implements the IPrefixUnit interface. |
Action<StorageCapacityOptions> | setup | The StorageCapacityOptions which may be configured. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
Properties
| Improve this Doc View SourceGibi
Gets the binary-multiple prefix gibi (Gi).
Declaration
public IPrefixUnit Gibi { get; }
Property Value
Type | Description |
---|---|
IPrefixUnit | The binary-multiple prefix gibi (Gi). |
Giga
Gets the metric-multiple prefix giga (G).
Declaration
public IPrefixUnit Giga { get; }
Property Value
Type | Description |
---|---|
IPrefixUnit | The metric-multiple prefix giga (G). |
Kibi
Gets the binary-multiple prefix kibi (Ki).
Declaration
public IPrefixUnit Kibi { get; }
Property Value
Type | Description |
---|---|
IPrefixUnit | The binary-multiple prefix kibi (Ki). |
Kilo
Gets the metric-multiple prefix kilo (k).
Declaration
public IPrefixUnit Kilo { get; }
Property Value
Type | Description |
---|---|
IPrefixUnit | The metric-multiple prefix kilo (k). |
Mebi
Gets the binary-multiple prefix mebi (Mi).
Declaration
public IPrefixUnit Mebi { get; }
Property Value
Type | Description |
---|---|
IPrefixUnit | The binary-multiple prefix mebi (Mi). |
Mega
Gets the metric-multiple prefix mega (M).
Declaration
public IPrefixUnit Mega { get; }
Property Value
Type | Description |
---|---|
IPrefixUnit | The metric-multiple prefix mega (M). |
Pebi
Gets the binary-multiple prefix pebi (Pi).
Declaration
public IPrefixUnit Pebi { get; }
Property Value
Type | Description |
---|---|
IPrefixUnit | The binary-multiple prefix pebi (Pi). |
Peta
Gets the metric-multiple prefix peta (P).
Declaration
public IPrefixUnit Peta { get; }
Property Value
Type | Description |
---|---|
IPrefixUnit | The metric-multiple prefix peta (P). |
Tebi
Gets the binary-multiple prefix tebi (Ti).
Declaration
public IPrefixUnit Tebi { get; }
Property Value
Type | Description |
---|---|
IPrefixUnit | The binary-multiple prefix tebi (Ti). |
Tera
Gets the metric-multiple prefix tera (T).
Declaration
public IPrefixUnit Tera { get; }
Property Value
Type | Description |
---|---|
IPrefixUnit | The metric-multiple prefix tera (T). |
Methods
| Improve this Doc View SourceToAggregateString(Boolean, Boolean, Boolean)
Returns an aggregated String of all multiple prefix of this instance.
Declaration
public string ToAggregateString(bool includePowerOfTwoGroup = true, bool includePowerOfTenGroup = true, bool includeUnit = true)
Parameters
Type | Name | Description |
---|---|---|
Boolean | includePowerOfTwoGroup | if set to |
Boolean | includePowerOfTenGroup | if set to |
Boolean | includeUnit | if set to |
Returns
Type | Description |
---|---|
String | System.String. |
ToString()
Returns a String that represents largest metric-multiple prefix of this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A String that represents largest metric-multiple prefix of this instance. |
Overrides
Remarks
Evaluates the largest metric-multiple prefix that is greater or equal to 1 and returns that as either Binary or Decimal formatted.