virtualx-engine/modules/mono/glue/cs_files/MarshalUtils.cs
2018-07-20 01:44:30 +02:00

17 lines
372 B
C#

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<, >);
}
}
}