summaryrefslogtreecommitdiff
path: root/modules/mono/glue/Managed/Files/MarshalUtils.cs
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mono/glue/Managed/Files/MarshalUtils.cs')
-rw-r--r--modules/mono/glue/Managed/Files/MarshalUtils.cs18
1 files changed, 18 insertions, 0 deletions
diff --git a/modules/mono/glue/Managed/Files/MarshalUtils.cs b/modules/mono/glue/Managed/Files/MarshalUtils.cs
new file mode 100644
index 0000000000..f7699a15bf
--- /dev/null
+++ b/modules/mono/glue/Managed/Files/MarshalUtils.cs
@@ -0,0 +1,18 @@
+using System;
+using Godot.Collections;
+
+namespace Godot
+{
+ static class MarshalUtils
+ {
+ static bool IsArrayGenericType(Type type)
+ {
+ return type.GetGenericTypeDefinition() == typeof(Array<>);
+ }
+
+ static bool IsDictionaryGenericType(Type type)
+ {
+ return type.GetGenericTypeDefinition() == typeof(Dictionary<, >);
+ }
+ }
+}