diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Array.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Array.cs index 6024073f8a11..c7420dcf7e97 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Array.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Array.cs @@ -1142,7 +1142,7 @@ internal static Array CreateTakingOwnershipOfDisposableValue(godot_array nati /// /// The typed array to convert. /// A new Godot Array, or if was null. - [return: NotNullIfNotNull(nameof(from))] + [return: NotNullIfNotNull("from")] public static explicit operator Array?(Array? from) { return from?._underlyingArray; diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Dictionary.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Dictionary.cs index 405f280cbb4e..d08fad90db8d 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Dictionary.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Dictionary.cs @@ -561,7 +561,7 @@ internal static Dictionary CreateTakingOwnershipOfDisposableValue( /// /// The typed dictionary to convert. /// A new Godot Dictionary, or if was null. - [return: NotNullIfNotNull(nameof(from))] + [return: NotNullIfNotNull("from")] public static explicit operator Dictionary?(Dictionary? from) { return from?._underlyingDict; diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/ExceptionUtils.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/ExceptionUtils.cs index 537d863ef273..04b6c2e743f5 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/ExceptionUtils.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/NativeInterop/ExceptionUtils.cs @@ -241,7 +241,7 @@ private unsafe static string GetVariantTypeName(godot_variant* variant) return variant->Type.ToString(); } - internal static void ThrowIfNullPtr(IntPtr ptr, [CallerArgumentExpression(nameof(ptr))] string? paramName = null) + internal static void ThrowIfNullPtr(IntPtr ptr, [CallerArgumentExpression("ptr")] string? paramName = null) { if (ptr == IntPtr.Zero) { diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/NodePath.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/NodePath.cs index 2ab690441723..0af640533d0e 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/NodePath.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/NodePath.cs @@ -138,7 +138,7 @@ public NodePath(string path) /// Converts this to a string. /// /// The to convert. - [return: NotNullIfNotNull(nameof(from))] + [return: NotNullIfNotNull("from")] public static implicit operator string?(NodePath? from) => from?.ToString(); /// diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/StringName.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/StringName.cs index 51e97e0fb84d..21d9ada12725 100644 --- a/modules/mono/glue/GodotSharp/GodotSharp/Core/StringName.cs +++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/StringName.cs @@ -84,7 +84,7 @@ public StringName(string name) /// Converts a to a string. /// /// The to convert. - [return: NotNullIfNotNull(nameof(from))] + [return: NotNullIfNotNull("from")] public static implicit operator string?(StringName? from) => from?.ToString(); ///