Пример #1
0
        public bool Equals(RangeOf <TValue> other)
        {
            if (object.ReferenceEquals(other, null))
            {
                return(false);
            }

            return(Equals(this.Min, other.Min) && Equals(this.Max, other.Max));
        }
Пример #2
0
 public RangeOf <TOther> Transform <TOther>(Func <TValue, TOther> transform)
     where TOther : struct, IComparable <TOther>
 {
     return(RangeOf <TOther> .From(transform(Min), transform(Max)));
 }