1

Closed

Add Union() to Range

description

Create a Union() method to Range<T>. Something like:
 
var range = new Range<int>(1, 3);
var union = range.Union(new Range<int>(2, 4));
// union == (1, 4)
 
If the ranges have no commonality, then return null;
Closed Feb 15, 2011 at 1:25 AM by jasonrbock
Added with changeset 68646

comments