Find Last Index in an array - CSharp System

CSharp examples for System:Array Find

Description

Find Last Index in an array

Demo Code


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

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

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

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

        }
}

Related Tutorials