summaryrefslogtreecommitdiffstats
path: root/modules/mono/glue/Managed/Files/Dictionary.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/Dictionary.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/Dictionary.cs')
-rw-r--r--modules/mono/glue/Managed/Files/Dictionary.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/mono/glue/Managed/Files/Dictionary.cs b/modules/mono/glue/Managed/Files/Dictionary.cs
index af1782b79a..6ab8549a01 100644
--- a/modules/mono/glue/Managed/Files/Dictionary.cs
+++ b/modules/mono/glue/Managed/Files/Dictionary.cs
@@ -193,6 +193,11 @@ namespace Godot.Collections
}
}
+ public override string ToString()
+ {
+ return godot_icall_Dictionary_ToString(GetPtr());
+ }
+
[MethodImpl(MethodImplOptions.InternalCall)]
internal extern static IntPtr godot_icall_Dictionary_Ctor();
@@ -243,6 +248,9 @@ namespace Godot.Collections
[MethodImpl(MethodImplOptions.InternalCall)]
internal extern static void godot_icall_Dictionary_Generic_GetValueTypeInfo(Type valueType, out int valTypeEncoding, out IntPtr valTypeClass);
+
+ [MethodImpl(MethodImplOptions.InternalCall)]
+ internal extern static string godot_icall_Dictionary_ToString(IntPtr ptr);
}
public class Dictionary<TKey, TValue> :
@@ -442,5 +450,7 @@ namespace Godot.Collections
{
return GetEnumerator();
}
+
+ public override string ToString() => objectDict.ToString();
}
}