title: Interval data type for C# .NET?
body: <p>I'm looking an <a href="http://en.wikipedia.org/wiki/Interval_(mathematics)" rel="noreferrer">interval</a> data type for .NET 4.0. For example the interval (a,b], all point x such that a&lt;x&lt;=b.</p>
  
  <p>What i would like to be able to do are create intervals with the following properites:</p>
  
  <ul>
  <li>Closed and open ends</li>
  <li>Unbounded intervals, fully unbounded, and right/left unbounded.</li>
  </ul>
  
  <p>With these I would like to do thing like:</p>
  
  <ul>
  <li>Check if a point is in a interval.</li>
  <li>Check if two intervals overlap.</li>
  <li>Merge two overlapping intervals to a single interval.</li>
  <li>Check if a collection of intervals covers a single interval.</li>
  <li>Etc :)</li>
  </ul>
  
  <p>Would be nice if I could work with both numerical datatype and datetimes. </p>
  
  <p>I know that the logic is pretty straight forward, but I see no reason that I would be the first one to need such a thing either.</p>