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 505df5c commit 5c01227Copy full SHA for 5c01227
Source/Common/EnumHelper.cs
@@ -60,6 +60,14 @@ public static bool TryParseEnumFromSchemaUri(
60
string? value,
61
out object? result)
62
{
63
+#if NET6_0_OR_GREATER
64
+ ArgumentNullException.ThrowIfNull(enumType);
65
+#else
66
+ if (enumType is null)
67
+ {
68
+ throw new ArgumentNullException(nameof(enumType));
69
+ }
70
+#endif
71
string? enumString;
72
if (value is not null && value.Length > Constants.HttpSchemaOrgUrl.Length && value.StartsWith(Constants.HttpSchemaOrgUrl, StringComparison.OrdinalIgnoreCase))
73
0 commit comments