I have trouble with Array.clear function
This is the simple code:
Dim Array1() As Double = {1, 2}
Dim Array2(UBound(Array1)) As Double
Array2 = Array1
Array.Clear(Array1, 0, Array1.Length)
After do the Array.Clear, it is not only Array 1 is Cleaned but also Array 2 is cleaned.
What happened here? What can i do to prevent this?
Thank you!