J
james
Hi Guys,
Would anyone mind telling me the difference between Array.Clone and
Array.CopyTo? I was asked this during an interview and got partial
credit for saying they were basically the same because they create
shallow copies. I ran ILDasm on Array and saw that they do the copy
using different IL calls. Does anyone know why one would be preferred
over the other?
Thanks,
James
Would anyone mind telling me the difference between Array.Clone and
Array.CopyTo? I was asked this during an interview and got partial
credit for saying they were basically the same because they create
shallow copies. I ran ILDasm on Array and saw that they do the copy
using different IL calls. Does anyone know why one would be preferred
over the other?
Thanks,
James