JonSkeet.MiscUtil package removed
This commit is contained in:
1 parent
d830a53006
commit
aefd68d6c8
2 files changed
+4
-16
No files matched your search
@@ -1,5 +1,4 @@
|
|||||||
using BenchmarkDotNet.Attributes;
|
using BenchmarkDotNet.Attributes;
|
||||||
using MiscUtil;
|
|
||||||
|
|
||||||
namespace Recyclable.Collections.Benchmarks.POC
|
namespace Recyclable.Collections.Benchmarks.POC
|
||||||
{
|
{
|
||||||
@@ -49,23 +48,13 @@ namespace Recyclable.Collections.Benchmarks.POC
|
|||||||
|
|
||||||
public readonly struct MyComparerReadOnlyStruct<T> : IComparer<T>
|
public readonly struct MyComparerReadOnlyStruct<T> : IComparer<T>
|
||||||
{
|
{
|
||||||
public int Compare(T? x, T? y) => Operator.Subtract(x, y) switch
|
public int Compare(T? x, T? y) => Comparer<T>.Default.Compare(x, y);
|
||||||
{
|
|
||||||
> 0 => 1,
|
|
||||||
< 0 => -1,
|
|
||||||
_ => 0,
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private struct MyComparerStruct<T> : IComparer<T>
|
private struct MyComparerStruct<T> : IComparer<T>
|
||||||
{
|
{
|
||||||
public int Compare(T? x, T? y) => Operator.Subtract(x, y) switch
|
public int Compare(T? x, T? y) => Comparer<T>.Default.Compare(x, y);
|
||||||
{
|
}
|
||||||
> 0 => 1,
|
|
||||||
< 0 => -1,
|
|
||||||
_ => 0,
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
private class MyComparer : IComparer<long>
|
private class MyComparer : IComparer<long>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
@@ -13,7 +13,6 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="BenchmarkDotNet" Version="0.13.5" />
|
<PackageReference Include="BenchmarkDotNet" Version="0.13.5" />
|
||||||
<PackageReference Include="Collections.Pooled" Version="1.0.82" />
|
<PackageReference Include="Collections.Pooled" Version="1.0.82" />
|
||||||
<PackageReference Include="JonSkeet.MiscUtil" Version="0.2.0" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
Reference in new issue
Block a user