MarshalUtils.cs 397 B

123456789101112131415161718
  1. using System;
  2. using Godot.Collections;
  3. namespace Godot
  4. {
  5. static class MarshalUtils
  6. {
  7. static bool IsArrayGenericType(Type type)
  8. {
  9. return type.GetGenericTypeDefinition() == typeof(Array<>);
  10. }
  11. static bool IsDictionaryGenericType(Type type)
  12. {
  13. return type.GetGenericTypeDefinition() == typeof(Dictionary<, >);
  14. }
  15. }
  16. }