title: C# linear function, array of decimals with null
body: <p>How to write in C # a linear function, which from the database table field values = decimal (10,2) null</p>
  
  <p>e.g. </p>
  
  <pre><code>{10,00; null; null; null; null; null; null; null; 12.00}
  </code></pre>
  
  <p>I will get:</p>
  
  <pre><code>{10; 10.25; 10.50; 10.75; 11.00; 11.25; 11.50; 11.75; 12,00}. 
  </code></pre>
  
  <p>The size of the array and the number of 'null' element are unknown.</p>
  
  <p>Only first and last elements are known. In this example, 10,00 and 12,00.</p>