From 8d8953d812c142545f9a7c14a29f41150bba8df4 Mon Sep 17 00:00:00 2001 From: Tim Date: Sun, 17 Nov 2024 02:17:06 -0500 Subject: [PATCH] Fixed compile error in Unity 2018. --- Package/Core/ForOldRuntime/Span/SpanExtensions.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Package/Core/ForOldRuntime/Span/SpanExtensions.cs b/Package/Core/ForOldRuntime/Span/SpanExtensions.cs index 1cbec850..2ff90bbb 100644 --- a/Package/Core/ForOldRuntime/Span/SpanExtensions.cs +++ b/Package/Core/ForOldRuntime/Span/SpanExtensions.cs @@ -22,6 +22,9 @@ public static void Sort(this Span span) // AsSpan extension exists in netstandard2.1 and in the Span nuget package. We only add this in Unity where we're not using nuget packages. public static Span AsSpan(this T[] array, int start) => new Span(array, start, array.Length); + + public static Span AsSpan(this T[] array) + => new Span(array, 0, array.Length); #endif } } \ No newline at end of file