1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-22 02:58:47 +00:00

refactor!: remove Span<T>.Replace for .NET 8 (#88)

This commit is contained in:
Oliver Booth 2023-11-14 16:55:04 +00:00
parent b6b90bf1fd
commit e2327b5235
Signed by: oliverbooth
GPG Key ID: E60B570D1B7557B5
2 changed files with 3 additions and 0 deletions

View File

@ -46,6 +46,7 @@ TypeInitializationException.
- X10D: Removed `IEnumerable<T>.ConcatOne` - this functionality already exists with `Append`.
- X10D: Removed `Endianness` enum.
- X10D: Removed `Span<T>.Replace(T, T)` for .NET 8 target.
- X10D: Removed .NET Standard 2.1 target.
- X10D.Hosting: Removed .NET Standard 2.1 target.
- X10D.DSharpPlus: Complete sunset of library. This library will not be updated to support DSharpPlus v5.0.0 (#83).

View File

@ -53,6 +53,7 @@ public static class SpanExtensions
return source;
}
#if !NET8_0_OR_GREATER
/// <summary>
/// Replaces all occurrences of a specified element in a span of elements with another specified element.
/// </summary>
@ -72,6 +73,7 @@ public static class SpanExtensions
}
}
}
#endif
/// <summary>
/// Splits a span of elements into sub-spans based on a delimiting element.