virtualx-engine/modules/mono/glue/Managed/Files/MarshalUtils.cs
Ignacio Etcheverry 995a40e8ef Move modules/mono/glue/cs_files to modules/mono/glue/Managed/Files
Added dummy MSBuild project and solution to get tooling help when editing these files.
2018-09-12 22:03:36 +02:00

18 lines
397 B
C#

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