We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95e25ba commit c08c3b6Copy full SHA for c08c3b6
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