Browse Source

增加对Uint(?),Ulong(?),Ushort(?)的支持

felix 2 years ago
parent
commit
3a50c04911
2 changed files with 2 additions and 2 deletions
  1. 2 2
      ModeTypeGenerator.cs
  2. BIN
      WingInterfaceLibrary.dll

+ 2 - 2
ModeTypeGenerator.cs

@@ -24,11 +24,11 @@ namespace FlutterCodeGenerator
                     duplicatedTime = _tempTypes[type];
                 }
                 duplicatedTime++;
-                if (type == typeof(int) || type == typeof(long) || type == typeof(short))
+                if (type == typeof(int) || type == typeof(long) || type == typeof(short) || type == typeof(uint) || type == typeof(ulong) || type == typeof(ushort))
                 {
                     return new IntModeType(argName);
                 }
-                else if (type == typeof(int?) || type == typeof(long?) || type == typeof(short?))
+                else if (type == typeof(int?) || type == typeof(long?) || type == typeof(short?) || type == typeof(uint?) || type == typeof(ulong?) || type == typeof(ushort?))
                 {
                     return new IntNullableModeType(argName);
                 }

BIN
WingInterfaceLibrary.dll