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