I have a global variable int[] and I want to clear its data and fill it again in a loop.
int[]
How could this possible in C#?
Wouldnt it be easier to use a list instead.
public List<int> something = new List<int>();
And then:
something.Add(somevalue);
And to clear:
something.Clear();