Fix `Order{,Descending}` preventing GitLab CI from building tests
This commit is contained in:
parent
2b71ff9a79
commit
56e5105d0d
|
@ -234,6 +234,7 @@ namespace BizHawk.Common.CollectionExtensions
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !NET7_0_OR_GREATER
|
||||||
/// <remarks>shorthand for <c>this.OrderBy(static e => e)</c>, backported from .NET 7</remarks>
|
/// <remarks>shorthand for <c>this.OrderBy(static e => e)</c>, backported from .NET 7</remarks>
|
||||||
public static IOrderedEnumerable<T> Order<T>(this IEnumerable<T> source)
|
public static IOrderedEnumerable<T> Order<T>(this IEnumerable<T> source)
|
||||||
where T : IComparable<T>
|
where T : IComparable<T>
|
||||||
|
@ -243,6 +244,7 @@ namespace BizHawk.Common.CollectionExtensions
|
||||||
public static IOrderedEnumerable<T> OrderDescending<T>(this IEnumerable<T> source)
|
public static IOrderedEnumerable<T> OrderDescending<T>(this IEnumerable<T> source)
|
||||||
where T : IComparable<T>
|
where T : IComparable<T>
|
||||||
=> source.OrderByDescending(ReturnSelf);
|
=> source.OrderByDescending(ReturnSelf);
|
||||||
|
#endif
|
||||||
|
|
||||||
/// <inheritdoc cref="List{T}.RemoveAll"/>
|
/// <inheritdoc cref="List{T}.RemoveAll"/>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
|
#if !NET7_0_OR_GREATER
|
||||||
using BizHawk.Common.CollectionExtensions;
|
using BizHawk.Common.CollectionExtensions;
|
||||||
|
#endif
|
||||||
using BizHawk.Common.StringExtensions;
|
using BizHawk.Common.StringExtensions;
|
||||||
using BizHawk.Emulation.Common;
|
using BizHawk.Emulation.Common;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue