Class UnitDescriptor
Описывает свойства единицы изменения.
Inheritance
System.Object
UnitDescriptor
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Lers.Data
Assembly: Lers.Core.dll
Syntax
public class UnitDescriptor
Properties
Ratio
Коэффициент для преобразования в системные единицы измерения.
Declaration
public double Ratio { get; }
Property Value
| Type | Description |
|---|---|
| System.Double |
SiRatio
Коэффициент для преобразования в единицы системы СИ.
Declaration
public decimal? SiRatio { get; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Decimal> |
Title
Наименование единицы измерения.
Declaration
public string Title { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Unit
Единица измерения.
Declaration
public Unit Unit { get; }
Property Value
| Type | Description |
|---|---|
| Unit |
Methods
Get(Unit)
Возвращает описатель указанной единицы измерения.
Declaration
public static UnitDescriptor Get(Unit unit)
Parameters
| Type | Name | Description |
|---|---|---|
| Unit | unit |
Returns
| Type | Description |
|---|---|
| UnitDescriptor |
ToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |
Overrides
System.Object.ToString()