From 00048957b07f95104d3f6c436828e4bb10a1bfca Mon Sep 17 00:00:00 2001 From: Alan West <3676547+alanwest@users.noreply.github.com> Date: Wed, 5 Apr 2023 17:01:03 -0700 Subject: [PATCH] Bump NETCOREAPP3_0_OR_GREATER to NET6_0_OR_GREATER (#4367) --- src/OpenTelemetry.Api/Internal/Guard.cs | 2 +- src/OpenTelemetry/Internal/MathHelper.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/OpenTelemetry.Api/Internal/Guard.cs b/src/OpenTelemetry.Api/Internal/Guard.cs index 2624468d554..efaf5bc1e26 100644 --- a/src/OpenTelemetry.Api/Internal/Guard.cs +++ b/src/OpenTelemetry.Api/Internal/Guard.cs @@ -42,7 +42,7 @@ public CallerArgumentExpressionAttribute(string parameterName) } #endif -#if !NETCOREAPP3_0_OR_GREATER && !NETSTANDARD2_1_OR_GREATER +#if !NET6_0_OR_GREATER && !NETSTANDARD2_1_OR_GREATER namespace System.Diagnostics.CodeAnalysis { /// Specifies that an output is not even if diff --git a/src/OpenTelemetry/Internal/MathHelper.cs b/src/OpenTelemetry/Internal/MathHelper.cs index 2f847ffb4b6..91670f60daa 100644 --- a/src/OpenTelemetry/Internal/MathHelper.cs +++ b/src/OpenTelemetry/Internal/MathHelper.cs @@ -15,7 +15,7 @@ // using System.Diagnostics; -#if NETCOREAPP3_0_OR_GREATER +#if NET6_0_OR_GREATER using System.Numerics; #endif using System.Runtime.CompilerServices; @@ -86,7 +86,7 @@ public static int LeadingZero32(int value) [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int LeadingZero64(long value) { -#if NETCOREAPP3_0_OR_GREATER +#if NET6_0_OR_GREATER return BitOperations.LeadingZeroCount((ulong)value); #else unchecked