ソースを参照

修复BaseType为空的bug

Felix 2 年 前
コミット
cbee25a267
2 ファイル変更1 行追加1 行削除
  1. 1 1
      ModeTypeGenerator.cs
  2. BIN
      WingInterfaceLibrary.dll

+ 1 - 1
ModeTypeGenerator.cs

@@ -46,7 +46,7 @@ namespace FlutterCodeGenerator
                 {
                     return new BoolNullableModeType(argName);
                 }
-                else if (type == typeof(string) || type == typeof(char) || type.BaseType.Name == "BaseParamsString" || type.BaseType.Name == "BaseString")
+                else if (type == typeof(string) || type == typeof(char) || type.BaseType?.Name == "BaseParamsString" || type.BaseType?.Name == "BaseString")
                 {
                     return new StringModeType(argName);
                 }

BIN
WingInterfaceLibrary.dll