示例#1
0
 /// <summary>Gets the highest index at which a condition is true, or -1 if nowhere.</summary>
 public static int LastIndexWhere <T>(this IList <T> list, Func <T, bool> pred)
 {
     return(LCInterfaces.LastIndexWhere(list.AsListSource(), pred));
 }
示例#2
0
 public int IndexOf(T item)
 {
     return(LCInterfaces.IndexOf(this, item));
 }
示例#3
0
 public static int LastIndexWhere <T>(this IListAndListSource <T> list, Func <T, bool> pred) => LCInterfaces.FinalIndexWhere(list, pred) ?? -1;
示例#4
0
 public virtual void CopyTo(T[] array, int arrayIndex)
 {
     LCInterfaces.CopyTo(this, array, arrayIndex);
 }
示例#5
0
 /// <summary>Gets the highest index at which a condition is true, or null if nowhere.</summary>
 public static int?FinalIndexWhere <T>(this IList <T> list, Func <T, bool> pred) => LCInterfaces.FinalIndexWhere(list.AsListSource(), pred);