| 123456789101112131415161718 |
- 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<, >);
- }
- }
- }
|