You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
18 lines
372 B
C#
18 lines
372 B
C#
using System;
|
|
|
|
namespace Godot
|
|
{
|
|
static class MarshalUtils
|
|
{
|
|
static bool IsArrayGenericType(Type type)
|
|
{
|
|
return type.GetGenericTypeDefinition() == typeof(Array<>);
|
|
}
|
|
|
|
static bool IsDictionaryGenericType(Type type)
|
|
{
|
|
return type.GetGenericTypeDefinition() == typeof(Dictionary<, >);
|
|
}
|
|
}
|
|
}
|