Show / Hide Table of Contents

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>

Inheritance
Object
MultipleTable
StorageCapacity
Implements
IEquatable<IUnit>
Namespace: Cuemon
Assembly: Cuemon.Core.dll
Syntax
public abstract class MultipleTable : IEquatable<IUnit>

Constructors

| Improve this Doc View Source

MultipleTable(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

unit cannot be null.

Properties

| Improve this Doc View Source

Unit

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 Source

Equals(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

true if the current object is equal to the other parameter; otherwise, false.

| Improve this Doc View Source

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

true if the specified Object is equal to this instance; otherwise, false.

Overrides
Object.Equals(Object)
| Improve this Doc View Source

GetHashCode()

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
Object.GetHashCode()
| Improve this Doc View Source

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
Object.ToString()
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 Source

Implicit(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 mt.

Implements

System.IEquatable<T>

See Also

IEquatable<T>
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright 2008-2022 Geekle. All rights reserved. Code with passion and love; deploy with confidence. 👨‍💻️🔥❤️🚀😎
Generated by DocFX