title: get range of values from a sorted dictionary
body: <p>I have a sorted dictionary with DateTime as the key:</p>
  
  <pre><code>myDictionary = new SortedDictionary&lt;DateTime, float&gt;();
  </code></pre>
  
  <p>I would like to implement the following function:</p>
  
  <pre><code>data[] GetRange(DateTime From, DateTime To)
  </code></pre>
  
  <p>The fastest way would be to get find the first / last index in the values and then get the data from a range of values</p>
  
  <p>But to do this, I would need to find how I can get the index of 'From' and 'To'.</p>
  
  <p>Is there a way to do this? or, is there a faster method to achieve this?</p>
  
  <p>Right now I am looking at having an array for the values and having a  dictionary to look up in the data array.</p>