Extension methods for creating quantities
QuantityExtensions
01 Syntax
Emily.eQuilibrator.Core.Models.QuantityExtensions
02 Methods
| Name | Overloads | Summary |
|---|---|---|
| Q_ | 2 | 创建带单位的物理量。 等价于 Q_(value, unit)。 |
| WithUnit | 1 | Creates a quantity from a double value with the specified unit |
| AsQuantity | 1 | Creates a dimensionless quantity from a double value |
03 Fields
| Name | Overloads | Summary |
|---|---|---|
| ureg | 2 | 全局单位注册表 |
04 Members
Q_(
Double, String)创建带单位的物理量。 等价于 Q_(value, unit)。
Q_(
String)创建带单位的物理量(仅指定数值,单位为空)。
WithUnit(
Double, String)Creates a quantity from a double value with the specified unit
AsQuantity(
Double)Creates a dimensionless quantity from a double value
ureg
全局单位注册表
ureg