ExtenstionMetohd.cs 238 B

12345678
  1. namespace FNZCM.BlazorWasm
  2. {
  3. public static class ExtenstionMetohd
  4. {
  5. public static IEnumerable<(T item, int index)> WithIndex<T>(this IEnumerable<T> self)
  6. => self.Select((item, index) => (item, index));
  7. }
  8. }