示例#1
0
 private static NamedComposition <IUnit> GetComposition(DerivedQuantity quant)
 {
     return(NamedComposition <IUnit> .
            CreateFromExistingBaseComposition(
                quant.BaseQuantityComposition,
                baseQuantity => baseQuantity.FundamentalUnit));
 }
示例#2
0
 /// <summary>
 /// To be called only from <see cref="DerivedQuantity.DerivedQuantity(NamedComposition{BaseQuantity})"/>
 /// </summary>
 /// <param name="quantity"></param>
 internal DerivedUnit(DerivedQuantity quantity)
     : base(null, quantity, 1m, GetComposition(quantity))
 {
 }