From 057d031760bd2d403f8750abcfbecf1f80abad49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?johnche=28=E8=BD=A6=E9=9B=84=E7=94=9F=29?= Date: Fri, 13 Jan 2017 15:51:32 +0800 Subject: [PATCH] =?UTF-8?q?public=E7=9A=84=E6=B3=9B=E5=8C=96=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E9=87=8C=E5=A4=B4=E5=8C=85=E5=90=ABprivate=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E6=B3=9B=E5=8C=96=E5=8F=82=E6=95=B0=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E4=BC=9A=E6=8A=8A=E8=BF=99=E4=B8=AA=E7=B1=BB=E5=9E=8B=E8=AF=86?= =?UTF-8?q?=E5=88=AB=E4=B8=BApublic=EF=BC=8C=E8=BF=9B=E8=80=8C=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E6=89=BE=E4=B8=8D=E5=88=B0=E9=80=82=E9=85=8Ddelegate?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/XLua/Src/Editor/Hotfix.cs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Assets/XLua/Src/Editor/Hotfix.cs b/Assets/XLua/Src/Editor/Hotfix.cs index f62d223..4486975 100644 --- a/Assets/XLua/Src/Editor/Hotfix.cs +++ b/Assets/XLua/Src/Editor/Hotfix.cs @@ -163,6 +163,16 @@ namespace XLua } else { + if (type.IsGenericInstance) + { + foreach (var typeArg in ((GenericInstanceType)type).GenericArguments) + { + if (isNoPublic(assembly, typeArg)) + { + return true; + } + } + } var scope = type.Scope; if (type.Scope.MetadataScopeType == MetadataScopeType.AssemblyNameReference && ((AssemblyNameReference)scope).Name != assembly.MainModule.FullyQualifiedName) // other assembly must be public @@ -174,16 +184,6 @@ namespace XLua { return true; } - if (type.IsGenericInstance) - { - foreach (var typeArg in ((GenericInstanceType)type).GenericArguments) - { - if (isNoPublic(assembly, typeArg)) - { - return true; - } - } - } return false; } -- GitLab