From 7eef36a4800759a2f0dfd841d9bd49029feec153 Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Sat, 30 Mar 2024 22:18:25 +1100 Subject: [PATCH] Update Polyfill_IEnumerable.cs --- src/Polyfill/Polyfill_IEnumerable.cs | 63 ++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/src/Polyfill/Polyfill_IEnumerable.cs b/src/Polyfill/Polyfill_IEnumerable.cs index 37380fe1..2ae4a9ca 100644 --- a/src/Polyfill/Polyfill_IEnumerable.cs +++ b/src/Polyfill/Polyfill_IEnumerable.cs @@ -261,6 +261,69 @@ static IEnumerable ChunkIterator(IEnumerable source .OrderBy(keySelector, comparer) .FirstOrDefault(); + public static IEnumerable DistinctBy(this IEnumerable source, Func keySelector) => + throw new NotImplementedException(); + + public static IEnumerable DistinctBy(this IEnumerable source, Func keySelector, IEqualityComparer comparer) => + throw new NotImplementedException(); + + public static TSource ElementAt(this IEnumerable source, Index index) => + throw new NotImplementedException(); + + public static TSource ElementAtOrDefault(this IEnumerable source, Index index) => + throw new NotImplementedException(); + + public static IEnumerable ExceptBy(this IEnumerable first, IEnumerable second, Func keySelector) => + throw new NotImplementedException(); + + public static IEnumerable ExceptBy(this IEnumerable first, IEnumerable second, Func keySelector, IEqualityComparer comparer) => + throw new NotImplementedException(); + + public static TSource FirstOrDefault(this IEnumerable source, Func predicate, TSource defaultValue) => + throw new NotImplementedException(); + + public static TSource FirstOrDefault(this IEnumerable source, TSource defaultValue) => + throw new NotImplementedException(); + + public static IEnumerable IntersectBy(this IEnumerable first, IEnumerable second, Func keySelector) => + throw new NotImplementedException(); + + public static IEnumerable IntersectBy(this IEnumerable first, IEnumerable second, Func keySelector, IEqualityComparer comparer) => + throw new NotImplementedException(); + + public static TSource LastOrDefault(this IEnumerable source, Func predicate, TSource defaultValue) => + throw new NotImplementedException(); + + public static TSource LastOrDefault(this IEnumerable source, TSource defaultValue) => + throw new NotImplementedException(); + + public static TSource Max(this IEnumerable source, IComparer comparer) => + throw new NotImplementedException(); + + public static TSource Min(this IEnumerable source, IComparer comparer) => + throw new NotImplementedException(); + + public static TSource SingleOrDefault(this IEnumerable source, Func predicate, TSource defaultValue) => + throw new NotImplementedException(); + + public static TSource SingleOrDefault(this IEnumerable source, TSource defaultValue) => + throw new NotImplementedException(); + + public static IEnumerable Take(this IEnumerable source, Range range) => + throw new NotImplementedException(); + + public static bool TryGetNonEnumeratedCount(this IEnumerable source, out int count) => + throw new NotImplementedException(); + + public static IEnumerable UnionBy(this IEnumerable first, IEnumerable second, Func keySelector) => + throw new NotImplementedException(); + + public static IEnumerable UnionBy(this IEnumerable first, IEnumerable second, Func keySelector, IEqualityComparer comparer) => + throw new NotImplementedException(); + + public static IEnumerable> Zip(this IEnumerable first, IEnumerable second, IEnumerable third) => + throw new NotImplementedException(); + #endif #if NET46X || NET47