godot/modules/mono/glue/Managed/Files/MarshalUtils.cs

19 lines
397 B
C#
Raw Normal View History

using System;
using Godot.Collections;
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
}
}
}