最佳答案
Array.Copy and Buffer.BlockCopy both do the same thing, but BlockCopy
is aimed at fast byte-level primitive array copying, whereas Copy
is the general-purpose implementation. My question is - under what circumstances should you use BlockCopy
? Should you use it at any time when you are copying primitive type arrays, or should you only use it if you're coding for performance? Is there anything inherently dangerous about using Buffer.BlockCopy
over Array.Copy
?