Example #1
0
 [DebuggerStepThrough] public static Unit <T> operator *(Unit <T> lhs, T rhs)
 {
     return(new Unit <T>(Operators <T> .Mul(lhs.Value, rhs), lhs.UnitId));
 }
Example #2
0
        [DebuggerStepThrough] public static Unit <T> operator *(Unit <T> lhs, Unit <T> rhs)
        {
            var id = Unit_.CombineUnits(lhs.UnitId, rhs.UnitId, divide: false);

            return(new Unit <T>(Operators <T> .Mul(lhs.Value, rhs.Value), id));
        }