Class BitUnit
Represents a unit of measurement for bits and is used with measurement of data.
Inherited Members
Namespace: Cuemon
Assembly: Cuemon.Core.dll
Syntax
public sealed class BitUnit : PrefixUnit, IPrefixUnit, IUnit, IEquatable<IUnit>
Constructors
| Improve this Doc View SourceBitUnit(Double, IPrefixMultiple, Action<UnitFormatOptions>)
Initializes a new instance of the BitUnit struct.
Declaration
public BitUnit(double value, IPrefixMultiple prefix, Action<UnitFormatOptions> setup = null)
Parameters
Type | Name | Description |
---|---|---|
Double | value | The value of this unit expressed as bits. |
IPrefixMultiple | prefix | The prefix to associate with this unit. |
Action<UnitFormatOptions> | setup | The UnitFormatOptions which may be configured. |
Exceptions
Type | Condition |
---|---|
ArgumentOutOfRangeException |
|
Fields
| Improve this Doc View SourceName
Defines the name of a bit unit.
Declaration
public const string Name = "bit"
Field Value
Type | Description |
---|---|
String |
Symbol
Defines the symbol of a bit unit.
Declaration
public const string Symbol = "b"
Field Value
Type | Description |
---|---|
String |
Operators
| Improve this Doc View SourceImplicit(BitUnit to Double)
Declaration
public static implicit operator double (BitUnit unit)
Parameters
Type | Name | Description |
---|---|---|
BitUnit | unit | The ByteUnit to convert. |
Returns
Type | Description |
---|---|
Double | A Double that is equivalent to |