diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/Array.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/Array.cs
index 6024073f8a1..c7420dcf7e9 100644
--- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Array.cs
+++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Array.cs
@@ -1142,7 +1142,7 @@ namespace Godot.Collections
///
/// 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 405f280cbb4..d08fad90db8 100644
--- a/modules/mono/glue/GodotSharp/GodotSharp/Core/Dictionary.cs
+++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/Dictionary.cs
@@ -561,7 +561,7 @@ namespace Godot.Collections
///
/// 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 537d863ef27..04b6c2e743f 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 @@ namespace Godot.NativeInterop
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 2ab69044172..0af640533d0 100644
--- a/modules/mono/glue/GodotSharp/GodotSharp/Core/NodePath.cs
+++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/NodePath.cs
@@ -138,7 +138,7 @@ namespace Godot
/// 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 51e97e0fb84..21d9ada1272 100644
--- a/modules/mono/glue/GodotSharp/GodotSharp/Core/StringName.cs
+++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/StringName.cs
@@ -84,7 +84,7 @@ namespace Godot
/// Converts a to a string.
///
/// The to convert.
- [return: NotNullIfNotNull(nameof(from))]
+ [return: NotNullIfNotNull("from")]
public static implicit operator string?(StringName? from) => from?.ToString();
///