title: dynamic array does not working properly
body: <p>I take  dynamic array as</p>
  
  <pre><code>double[] array = new double[10];
  </code></pre>
  
  <p>I put some values in it in run time, but if user put less then 
  10 values like if user put 5 values in it instead of 10.
  After that when i display the array first it's show the five value 
  and after that start displaying 0 0 0 0 0. I just want to know is there any method
  to get rid of using dynamic array in c#? </p>