2017-11-05 11:37:59 +01:00
|
|
|
using System;
|
2017-10-02 23:24:00 +02:00
|
|
|
|
|
|
|
namespace Godot
|
|
|
|
{
|
2018-07-18 23:07:57 +02:00
|
|
|
static class MarshalUtils
|
2017-10-02 23:24:00 +02:00
|
|
|
{
|
2018-07-18 23:07:57 +02:00
|
|
|
static bool IsArrayGenericType(Type type)
|
2017-10-02 23:24:00 +02:00
|
|
|
{
|
2018-07-18 23:07:57 +02:00
|
|
|
return type.GetGenericTypeDefinition() == typeof(Array<>);
|
2017-10-02 23:24:00 +02:00
|
|
|
}
|
|
|
|
|
2018-07-18 23:07:57 +02:00
|
|
|
static bool IsDictionaryGenericType(Type type)
|
2017-10-02 23:24:00 +02:00
|
|
|
{
|
2018-07-18 23:07:57 +02:00
|
|
|
return type.GetGenericTypeDefinition() == typeof(Dictionary<, >);
|
2017-10-02 23:24:00 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|