I want to clear memory from "spent" arrays of vectors or integers. Arrays themselves and values inside are no longer necessary.
I am simply doing:
This method only clears the values of the elements; it does not delete the elements themselves.
Look into below documentation: https://msdn.microsoft.com/en-us/library/system.array.clear(v=vs.110).aspx
By setting NULL is not an indication to GC to collect it. Probably you can call
refer https://msdn.microsoft.com/en-us/library/system.gc.collect(v=vs.110).aspx for more information.
Also keep in mind "GC.Collect" call is a overhead.