private static NamedComposition <IUnit> GetComposition(DerivedQuantity quant) { return(NamedComposition <IUnit> . CreateFromExistingBaseComposition( quant.BaseQuantityComposition, baseQuantity => baseQuantity.FundamentalUnit)); }
/// <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)) { }