public Range(IBound <T> lowerBound, IBound <T> upperBound) { Range <T> .AssertBounds(lowerBound, upperBound); this._lowerBound = lowerBound; this._upperBound = upperBound; }
public Range(T lowerBound, T upperBound) { Range <T> .AssertBounds(lowerBound, upperBound); this._lowerBound = new Closed <T>(lowerBound); this._upperBound = new Closed <T>(upperBound); }
public static void AssertBounds <T>(T lowerBound, T upperBound) where T : IComparable <T> { Range <T> .AssertBounds(lowerBound, upperBound); }