blob: 6ad4b3dcb2aba232a0ad2e0a2c3a2af8b41da71c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
using System;
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<, >);
}
}
}
|