Find Index in array - CSharp System

CSharp examples for System:Array Find

Description

Find Index in array

Demo Code


using System.Linq;
using System.Collections.Generic;
using System;//from   w w  w  . j a v  a  2s. c  o m

public class Main{
        public static int
        FindIndex<T>(this T[] array, int startIndex, int count, Predicate<T> match) {
            return Array.FindIndex(array, startIndex, count, match);
        }
        public static int
        FindIndex<T>(this T[] array, int startIndex, Predicate<T> match) {
            return Array.FindIndex(array, startIndex, match);

        }
        public static int
        FindIndex<T>(this T[] array, Predicate<T> match) {
            return Array.FindIndex(array, match);

        }
}

Related Tutorials