Class MultipleTable
Provides a way to represent a table of prefixes that precedes a unit of measure to indicate a multiple of the unit. Implements the IEquatable<T>
Implements
Namespace: Cuemon
Assembly: Cuemon.Core.dll
Syntax
public abstract class MultipleTable : IEquatable<IUnit>
Constructors
| Improve this Doc View SourceMultipleTable(IPrefixUnit)
Initializes a new instance of the MultipleTable class.
Declaration
protected MultipleTable(IPrefixUnit unit)
Parameters
Type | Name | Description |
---|---|---|
IPrefixUnit | unit | The instance of an object that implements the IPrefixUnit interface. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
Properties
| Improve this Doc View SourceUnit
Gets the base unit of this table.
Declaration
public IPrefixUnit Unit { get; }
Property Value
Type | Description |
---|---|
IPrefixUnit | The base unit of this table. |
Methods
| Improve this Doc View SourceEquals(IUnit)
Indicates whether the current object is equal to another object of the same type.
Declaration
public virtual bool Equals(IUnit other)
Parameters
Type | Name | Description |
---|---|---|
IUnit | other | An object to compare with this object. |
Returns
Type | Description |
---|---|
Boolean |
|
Equals(Object)
Determines whether the specified Object is equal to this instance.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
Boolean |
|
Overrides
| Improve this Doc View SourceGetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
Overrides
| Improve this Doc View SourceToString()
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.
Operators
| Improve this Doc View SourceImplicit(MultipleTable to Double)
Performs an implicit conversion from MultipleTable to Double.
Declaration
public static implicit operator double (MultipleTable mt)
Parameters
Type | Name | Description |
---|---|---|
MultipleTable | mt | The MultipleTable to convert. |
Returns
Type | Description |
---|---|
Double | A Double that is equivalent to |