This question is probably pretty dumb, but I'm new to C # and I'm not sure if there are any shortcuts for this. I have a dynamic array for which the range will always be 1-n, with n being a variable. Do I need to declare an array and contain incremental values ββwithout loops?
Think along the lines of my array holding values ββof 1-50. I would like to declare the array as such (logically): double[] myArray = new double[] {1-50} or, more general for my purposes, double[] myArray = new double[] {1-n} . I do not know what made me think about it, I just thought that I would ask.
I am going to associate this array (or list) with a combo box in WPF. I think combo-box installation will also work if there is a shortcut for this.
Sorry for the dumb question. =)
source share