Exemple #1
0
 [DebuggerStepThrough] public static Unit <T> operator /(Unit <T> lhs, T rhs)
 {
     return(new Unit <T>(Operators <T> .Div(lhs.Value, rhs), lhs.UnitId));
 }
Exemple #2
0
        [DebuggerStepThrough] public static Unit <T> operator /(T lhs, Unit <T> rhs)
        {
            var id = Unit_.CombineUnits(Unit_.NoUnitsId, rhs.UnitId, divide: true);

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