mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-06-19 13:28:16 +08:00
Add support for .NET 7.0
This commit is contained in:

committed by
Patrik Svensson

parent
02f9d26473
commit
7dce4af552
@ -110,7 +110,7 @@ internal static class EnumerableExtensions
|
||||
return source.Select((value, index) => func(value, index));
|
||||
}
|
||||
|
||||
#if !NET5_0_OR_GREATER
|
||||
#if !NET6_0_OR_GREATER
|
||||
public static IEnumerable<(TFirst First, TSecond Second)> Zip<TFirst, TSecond>(
|
||||
this IEnumerable<TFirst> source, IEnumerable<TSecond> first)
|
||||
{
|
||||
|
@ -26,7 +26,7 @@ internal static class StringBuilderExtensions
|
||||
public static void AppendSpan(this StringBuilder builder, ReadOnlySpan<char> span)
|
||||
{
|
||||
// NetStandard 2 lacks the override for StringBuilder to add the span. We'll need to convert the span
|
||||
// to a string for it, but for .NET 5.0 or newer we'll use the override.
|
||||
// to a string for it, but for .NET 6.0 or newer we'll use the override.
|
||||
#if NETSTANDARD2_0
|
||||
builder.Append(span.ToString());
|
||||
#else
|
||||
|
Reference in New Issue
Block a user