godot/modules/mono/glue/cs_files/MarshalUtils.cs

18 lines
372 B
C#
Raw Normal View History

using System;
2017-10-02 21:24:00 +00:00
namespace Godot
{
static class MarshalUtils
2017-10-02 21:24:00 +00:00
{
static bool IsArrayGenericType(Type type)
2017-10-02 21:24:00 +00:00
{
return type.GetGenericTypeDefinition() == typeof(Array<>);
2017-10-02 21:24:00 +00:00
}
static bool IsDictionaryGenericType(Type type)
2017-10-02 21:24:00 +00:00
{
return type.GetGenericTypeDefinition() == typeof(Dictionary<, >);
2017-10-02 21:24:00 +00:00
}
}
}