This should be a pretty basic question, but I've been having a little trouble finding a definite answer.
When you have an array of values and you use the .ToArray()
method does it create a deep or shallow copy of the array?
This should be a pretty basic question, but I've been having a little trouble finding a definite answer.
When you have an array of values and you use the .ToArray()
method does it create a deep or shallow copy of the array?
No.
You can easily verify this by writing a small program to test.