Difference between the System.Array.CopyTo() and System.Array.Clone()

前端 未结 13 2160
攒了一身酷
攒了一身酷 2020-12-02 06:50

What’s the difference between the System.Array.CopyTo() and System.Array.Clone()?

13条回答
  •  被撕碎了的回忆
    2020-12-02 07:27

    Array.Clone doesn't require a target/destination array to be available when calling the function, whereas Array.CopyTo requires a destination array and an index.

提交回复
热议问题