I need to convert short array to double one and I do this like this:
double doubleArray = Array.ConvertAll(shortArray, x => (double)x);
after doubleArray was used in function I have to release it (dispose or clean) in some way to avoid the memory leak.
For some reason I cannot do this on the way doubleArray.Clear();
Any ideas how can I do what I need?