From 87394ca2af771e00105c24808038b7d008a46b4b Mon Sep 17 00:00:00 2001 From: Atsushi Eno Date: Mon, 13 Nov 2017 11:38:52 -0500 Subject: [PATCH] [generator] internal Invoker classes should also be partial. It seems that sometimes people want to add some code to the type... --- tools/generator/InterfaceGen.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/generator/InterfaceGen.cs b/tools/generator/InterfaceGen.cs index cc08830bc..609e57ed6 100644 --- a/tools/generator/InterfaceGen.cs +++ b/tools/generator/InterfaceGen.cs @@ -221,7 +221,7 @@ void GenProperties (StreamWriter sw, string indent, CodeGenerationOptions opt) void GenerateInvoker (StreamWriter sw, string indent, CodeGenerationOptions opt) { sw.WriteLine ("{0}[global::Android.Runtime.Register (\"{1}\", DoNotGenerateAcw=true{2})]", indent, RawJniName, this.AdditionalAttributeString ()); - sw.WriteLine ("{0}internal class {1}Invoker : global::Java.Lang.Object, {1} {{", indent, Name); + sw.WriteLine ("{0}internal partial class {1}Invoker : global::Java.Lang.Object, {1} {{", indent, Name); sw.WriteLine (); opt.CodeGenerator.WriteInterfaceInvokerHandle (this, sw, indent + "\t", opt, Name + "Invoker"); sw.WriteLine ("{0}\tIntPtr class_ref;", indent);