A
azerty
Hello
I need obtain an int[] tab in my application, It is very important that the
performance would be "perfect" and I can not know the size of it before the
process to obtains different int values ...
now, I do like this :
ArrayList al = new ArrayList();
while (myCondition())
{
.....
al.Add(myInt);
}
return (int[])al.ToArray(typeof(int));
but may be you have better way to do this ?
thanks a lot for your help !!
I need obtain an int[] tab in my application, It is very important that the
performance would be "perfect" and I can not know the size of it before the
process to obtains different int values ...
now, I do like this :
ArrayList al = new ArrayList();
while (myCondition())
{
.....
al.Add(myInt);
}
return (int[])al.ToArray(typeof(int));
but may be you have better way to do this ?
thanks a lot for your help !!