From e63145a78f0e00ff6428a7abb8489ba3f5a800cc Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Tue, 20 Feb 2024 11:36:21 +1100 Subject: [PATCH] . --- src/Polyfill/Polyfill.targets | 25 ++++++++++++++----------- src/Polyfill/Polyfill_IEnumerable.cs | 4 ++-- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/src/Polyfill/Polyfill.targets b/src/Polyfill/Polyfill.targets index f456d5f7..cc3ac85d 100644 --- a/src/Polyfill/Polyfill.targets +++ b/src/Polyfill/Polyfill.targets @@ -56,17 +56,20 @@ $(DefineConstants);HAS_SPAN - $(DefineConstants);HAS_SPAN - $(DefineConstants);HAS_SPAN - $(DefineConstants);HAS_SPAN - $(DefineConstants);HAS_SPAN - $(DefineConstants);HAS_SPAN - $(DefineConstants);HAS_SPAN - $(DefineConstants);HAS_SPAN - $(DefineConstants);HAS_SPAN - $(DefineConstants);HAS_SPAN - $(DefineConstants) - $(DefineConstants) + $(DefineConstants);HasValueTuple + $(DefineConstants);HAS_SPAN;HasValueTuple + $(DefineConstants);HAS_SPAN;HasValueTuple + $(DefineConstants);HAS_SPAN;HasValueTuple + $(DefineConstants);HAS_SPAN;HasValueTuple + $(DefineConstants);HAS_SPAN;HasValueTuple + $(DefineConstants);HAS_SPAN;HasValueTuple + $(DefineConstants);HAS_SPAN;HasValueTuple + $(DefineConstants);HAS_SPAN;HasValueTuple + $(DefineConstants);HAS_SPAN;HasValueTuple + $(DefineConstants);HasValueTuple + $(DefineConstants);HasValueTuple + $(DefineConstants);HasValueTuple + $(DefineConstants);HasValueTuple diff --git a/src/Polyfill/Polyfill_IEnumerable.cs b/src/Polyfill/Polyfill_IEnumerable.cs index e20203c9..4612bc94 100644 --- a/src/Polyfill/Polyfill_IEnumerable.cs +++ b/src/Polyfill/Polyfill_IEnumerable.cs @@ -74,10 +74,10 @@ public static IEnumerable Except( params TSource[] items) => target.Except((IEnumerable)items, comparer); -#if !NET9_0_OR_GREATER +#if !NET9_0_OR_GREATER && HasValueTuple /// - /// TODO + /// https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-9/overview#linq /// [Link("https://learn.microsoft.com/en-us/dotnet/api/system.linq.enumerable.index#system-linq-enumerable-index-1(system-collections-generic-ienumerable((-0)))")] public static IEnumerable<(int Index, TSource Item)> Index (this IEnumerable source)