I have an array that works more or less like a hastable: based on an index, a value will be placed in the array, so some indices of the array will have values inside, others might not or will not. I have two pieces of code:
public void register( int index, string value )
{
_array[index] = value;
}
public void unregisterAll( )
{
/*
is this going to cause a memory leak when some of the values
are filled int the above function?
*/
_array = new string[12];
}