From 345eb9619d474f06edaac882cf35e894b5b9304f Mon Sep 17 00:00:00 2001 From: Keith Dahlby Date: Sun, 15 Sep 2024 08:56:58 -0500 Subject: [PATCH] Always check NET8_0 --- src/Polyfill/Polyfill_Memory_SpanSplitEnumerator.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Polyfill/Polyfill_Memory_SpanSplitEnumerator.cs b/src/Polyfill/Polyfill_Memory_SpanSplitEnumerator.cs index f510b4be..de0a62d7 100644 --- a/src/Polyfill/Polyfill_Memory_SpanSplitEnumerator.cs +++ b/src/Polyfill/Polyfill_Memory_SpanSplitEnumerator.cs @@ -198,14 +198,11 @@ public bool MoveNext() const string whitespaces = "\t\n\v\f\r\u0020\u0085\u00a0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u2028\u2029\u202f\u205f\u3000"; -#if NET8_0_OR_GREATER +#if NET8_0 public static readonly SearchValues WhiteSpaceChars = SearchValues.Create(whitespaces.AsSpan()); #else public static readonly T[] WhiteSpaceChars; -#endif - -#if !NET8_0 static SpanSplitEnumerator() { @@ -216,9 +213,8 @@ static SpanSplitEnumerator() .ToArray(); } } - #endif } } -#endif \ No newline at end of file +#endif