How to quickly zero out an array?

后端 未结 7 923
青春惊慌失措
青春惊慌失措 2020-12-08 18:30

I am currently doing it in a for loop, and I know in C there is the ZeroMemory API, however that doesn\'t seem to be available in C#. Nor does the somewhat equivalent Array.

相关标签:
7条回答
  • 2020-12-08 19:07
    Array.Clear(integerArray, 0, integerArray.Length);
    
    0 讨论(0)
提交回复
热议问题