Ejemplo n.º 1
0
 public RangeStub2 <T> UnionInstance(RangeStub2 <T> other) => new RangeStub2 <T>(
     _from.GetValueOrDefault().CompareTo(other._from.GetValueOrDefault()) >= 0 ? _from : other._from,
     _to.GetValueOrDefault().CompareTo(other._to.GetValueOrDefault()) >= 0 ? _to : other._to);
Ejemplo n.º 2
0
 public RangeStubCompact(RangeBoundaryFrom <T> from, RangeBoundaryTo <T> to)
 {
     _from     = from.GetValueOrDefault();
     _to       = to.GetValueOrDefault();
     _combined = (int)from.Kind | (int)to.Kind;
 }