We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eec449e commit 0445f82Copy full SHA for 0445f82
src/Microsoft.Identity.Abstractions/DownstreamApi/AuthorizationHeaderResult.cs
@@ -104,10 +104,14 @@ public AuthorizationHeaderResult(AuthorizationHeaderInformation? info, Authoriza
104
/// </remarks>
105
public static implicit operator string(AuthorizationHeaderResult result)
106
{
107
+#if NET8_0_OR_GREATER
108
+ ArgumentNullException.ThrowIfNull(result);
109
+#else
110
if (result is null)
111
112
throw new ArgumentNullException(nameof(result));
113
}
114
+#endif
115
116
if (!result.Succeeded)
117
0 commit comments