METHOD
Array.Clear
Sets the specified range to the element type default; array length does not change. Reference elements become null, integers become zero.
Formal Syntax & Structure
csharp syntaxcsharp
Array.Clear(values, index, length)Working Example
Example Snippetcsharp
using System;int[] values = { 7, 8, 9 };Array.Clear(values, 1, 1);Console.WriteLine(string.Join(",", values)); // 7,0,9