diff --git a/src/BizHawk.Common/Util.cs b/src/BizHawk.Common/Util.cs index 07d8fafb6d..acb425d5ff 100644 --- a/src/BizHawk.Common/Util.cs +++ b/src/BizHawk.Common/Util.cs @@ -82,7 +82,7 @@ namespace BizHawk.Common } #if NETCOREAPP3_0_OR_GREATER - public static string DescribeIsNull(T? obj, [CallerArgumentExpression("obj")] string? expr = default) + public static string DescribeIsNull(T? obj, [CallerArgumentExpression(nameof(obj))] string? expr = default) #else public static string DescribeIsNull(T? obj, string expr) #endif @@ -90,7 +90,7 @@ namespace BizHawk.Common => $"{expr} is {(obj is null ? "null" : "not null")}"; #if NETCOREAPP3_0_OR_GREATER - public static string DescribeIsNullValT(T? boxed, [CallerArgumentExpression("boxed")] string? expr = default) + public static string DescribeIsNullValT(T? boxed, [CallerArgumentExpression(nameof(boxed))] string? expr = default) #else public static string DescribeIsNullValT(T? boxed, string expr) #endif