We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 95e25ba + c08c3b6 commit f2fb6ccCopy full SHA for f2fb6cc
src/Microsoft.OpenApi/Utils.cs
@@ -20,7 +20,7 @@ internal static class Utils
20
/// <returns>The input value.</returns>
21
internal static T CheckArgumentNull<T>(
22
T value,
23
- [CallerArgumentExpression("value")] string parameterName = "")
+ [CallerArgumentExpression(nameof(value))] string parameterName = "")
24
{
25
return value ?? throw new ArgumentNullException(parameterName, $"Value cannot be null: {parameterName}");
26
}
0 commit comments