I'm not sure if this is possible in C # but I have a variable defined in
public partial class Form1 : Form {... ... #region used variables public ulong[] logP = {0,0,0,0,0,0,0,0} .... ..
Then in the program I want to be able to resize in the program before the main routines start on it and do some calculations
Since I like to test using sets of numbers and sizes of arrays, I would like to be able to change the size of the array for each test (but this array is not associated with one procedure, its global variable, which must be mutable.
Since the whole program in different parts uses this array (under various functions), how should I put this part
ulong [] sumP = new ulong[numericupdown.valeu];
So that he resize this global variable size?
source share