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