Is there any difference between Array.Copy
and CopyTo
? Are they just overloaded?
Same functionality, different calling conventions. Copy
is a static method, while CopyTo
isn't.
Array.Copy(arraySrc, arrayDest, arraySrc.length);
arraySrc.CopyTo(arrayDest, startingIndex);
Look at it carefully. Copy
is a static method whereas CopyTo
is an instance method.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With