Example #1
0
        public Range(IBound <T> lowerBound, IBound <T> upperBound)
        {
            Range <T> .AssertBounds(lowerBound, upperBound);

            this._lowerBound = lowerBound;
            this._upperBound = upperBound;
        }
Example #2
0
        public Range(T lowerBound, T upperBound)
        {
            Range <T> .AssertBounds(lowerBound, upperBound);

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