Skip to content

Commit 5674f8f

Browse files
committed
Wrap with NET11_0_OR_GREATER
1 parent a51e81e commit 5674f8f

File tree

1 file changed

+4
-0
lines changed
  • src/benchmarks/micro/libraries/System.IO.Compression

1 file changed

+4
-0
lines changed

src/benchmarks/micro/libraries/System.IO.Compression/Zstandard.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
using BenchmarkDotNet.Attributes;
77
using MicroBenchmarks;
88

9+
#if NET11_0_OR_GREATER
10+
911
namespace System.IO.Compression
1012
{
1113
[BenchmarkCategory(Categories.Libraries, Categories.NoWASM)]
@@ -70,3 +72,5 @@ private static int GetQuality(CompressionLevel compressLevel)
7072
=> compressLevel == CompressionLevel.Optimal ? 11 : compressLevel == CompressionLevel.Fastest ? 1 : 0;
7173
}
7274
}
75+
76+
#endif

0 commit comments

Comments
 (0)