Interface IUnit
Defines a unit of measurement that is used as a standard for measurement of the same kind of quantity. Implements the IEquatable<T>
Inherited Members
Namespace: Cuemon
Assembly: Cuemon.Core.dll
Syntax
public interface IUnit : IEquatable<IUnit>
Properties
| Improve this Doc View SourceUnitName
Gets the name of the base unit.
Declaration
string UnitName { get; }
Property Value
Type | Description |
---|---|
String | The name of the base unit. |
UnitSymbol
Gets the symbol of the base unit.
Declaration
string UnitSymbol { get; }
Property Value
Type | Description |
---|---|
String | The symbol of the base unit. |
UnitValue
Gets the base value of the unit.
Declaration
double UnitValue { get; }
Property Value
Type | Description |
---|---|
Double | The base value of the unit. |
Methods
| Improve this Doc View SourceToString(Action<UnitFormatOptions>)
Returns a String that represents this instance.
Declaration
string ToString(Action<UnitFormatOptions> setup)
Parameters
Type | Name | Description |
---|---|---|
Action<UnitFormatOptions> | setup | The UnitFormatOptions which need to be configured. |
Returns
Type | Description |
---|---|
String | A String that represents this instance. |
See Also
IEquatable<T>