Explorar o código

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

felix %!s(int64=2) %!d(string=hai) anos
pai
achega
3a50c04911
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      ModeTypeGenerator.cs
  2. BIN=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=BIN
WingInterfaceLibrary.dll