1
Vote

Add an overload for Intersect

description

Instead of this:

var newRange = range.Intersect(new Range<int>(5, 12));

Add this:

var newRange = range.Intersect(5, 12);

Since we know what the type is for the range, we can do this.

Also, I can't remember if I added Union to Range, but if I haven't, I should (and then provide this kind of overload)

comments