Class QuantityWithUnit
- Namespace
- H.Extensions.Unit
- Assembly
- H.Extensions.Unit.dll
Class to represent a quantity of a particular unit, e.g 5.25 ft
public class QuantityWithUnit : INotifyPropertyChanged
- Inheritance
-
QuantityWithUnit
- Implements
- Inherited Members
- Extension Methods
Constructors
QuantityWithUnit()
public QuantityWithUnit()
QuantityWithUnit(UnitsSystem, IPhysicalQuantity)
public QuantityWithUnit(UnitsSystem system, IPhysicalQuantity qty)
Parameters
system
UnitsSystemqty
IPhysicalQuantity
QuantityWithUnit(double, Unit)
public QuantityWithUnit(double qty, Unit unit)
Parameters
Properties
CurrentUnitIndex
public int CurrentUnitIndex { get; set; }
Property Value
Dimensions
public Dimensions Dimensions { get; set; }
Property Value
PhysicalQuantity
public IPhysicalQuantity PhysicalQuantity { get; set; }
Property Value
PossibleUnits
public List<Unit> PossibleUnits { get; }
Property Value
Quantity
public double Quantity { get; set; }
Property Value
System
public UnitsSystem System { get; set; }
Property Value
Unit
public Unit Unit { get; set; }
Property Value
Methods
OnPropertyChanged(string)
protected void OnPropertyChanged(string name = null)
Parameters
name
string
Events
PropertyChanged
Occurs when a property value changes.
public event PropertyChangedEventHandler PropertyChanged