Clear array element - CSharp System

CSharp examples for System:Array Element

Description

Clear array element

Demo Code


using System.Linq;
using System.Collections.Generic;
using System;//from  www.j a va  2  s.  com

public class Main{
        public static void
        Clear<T>(this T[] array, int index, int length) {
            Array.Clear(array, index, length);

        }
        // ****************************

        static public void
        Clear<T>(this T[] array) {
            Array.Clear(array, 0, array.Length);
        }
}

Related Tutorials