virtualx-engine/modules/mono/glue/cs_files/MarshalUtils.cs

18 lines
372 B
C#
Raw Normal View History

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