summaryrefslogtreecommitdiffstats
path: root/modules/mono/glue/Managed/Files/Array.cs
diff options
context:
space:
mode:
authorIgnacio Roldán Etcheverry <neikeq@users.noreply.github.com>2019-04-18 15:31:33 +0200
committerGitHub <noreply@github.com>2019-04-18 15:31:33 +0200
commit1b3ea697c5dcbbb2feb0f96204de257532edaf0c (patch)
tree10ef1a0c347b6f817905b45cdff607f4a8240ac4 /modules/mono/glue/Managed/Files/Array.cs
parent4f22fde635928735366ab656cd52ba3c6a791161 (diff)
parent2b9557c920b8a960bb7faa3a0a965eb932723e75 (diff)
downloadredot-engine-1b3ea697c5dcbbb2feb0f96204de257532edaf0c.tar.gz
Merge pull request #28165 from neikeq/missing-tostring
C#: Add missing ToString() override methods
Diffstat (limited to 'modules/mono/glue/Managed/Files/Array.cs')
-rw-r--r--modules/mono/glue/Managed/Files/Array.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/mono/glue/Managed/Files/Array.cs b/modules/mono/glue/Managed/Files/Array.cs
index 2277c7bf18..0e7b0362e0 100644
--- a/modules/mono/glue/Managed/Files/Array.cs
+++ b/modules/mono/glue/Managed/Files/Array.cs
@@ -143,6 +143,11 @@ namespace Godot.Collections
}
}
+ public override string ToString()
+ {
+ return godot_icall_Array_ToString(GetPtr());
+ }
+
[MethodImpl(MethodImplOptions.InternalCall)]
internal extern static IntPtr godot_icall_Array_Ctor();
@@ -190,6 +195,9 @@ namespace Godot.Collections
[MethodImpl(MethodImplOptions.InternalCall)]
internal extern static void godot_icall_Array_Generic_GetElementTypeInfo(Type elemType, out int elemTypeEncoding, out IntPtr elemTypeClass);
+
+ [MethodImpl(MethodImplOptions.InternalCall)]
+ internal extern static string godot_icall_Array_ToString(IntPtr ptr);
}
public class Array<T> : IList<T>, ICollection<T>, IEnumerable<T>
@@ -353,5 +361,7 @@ namespace Godot.Collections
{
return GetEnumerator();
}
+
+ public override string ToString() => objectArray.ToString();
}
}