Пример #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);