diff --git a/src/bin/eolian_mono/eolian/mono/klass.hh b/src/bin/eolian_mono/eolian/mono/klass.hh index 478c6a9c80..6c6fd906cd 100644 --- a/src/bin/eolian_mono/eolian/mono/klass.hh +++ b/src/bin/eolian_mono/eolian/mono/klass.hh @@ -397,11 +397,14 @@ struct klass if (extension_method_stream.tellp() <= 0) return true; + if (!name_helpers::open_namespaces(sink, cls.namespaces, context)) + return false; + if(!as_generator (lit("#if EFL_BETA\n") << "#pragma warning disable CS1591\n" // Disabling warnings as DocFx will hide these classes - <<"public static class " << (string % "_") << name_helpers::klass_inherit_name(cls) - << "_ExtensionMethods {\n" + << "public static class " << name_helpers::klass_concrete_name(cls) + << "ExtensionMethods {\n" << extension_method_stream.str() << "}\n" << "#pragma warning restore CS1591\n" @@ -409,6 +412,9 @@ struct klass .generate(sink, cls.namespaces, context)) return false; + if (!name_helpers::close_namespaces(sink, cls.namespaces, context)) + return false; + return true; } diff --git a/src/tests/efl_mono/Model.cs b/src/tests/efl_mono/Model.cs index bb6ba3b01c..69596af25d 100644 --- a/src/tests/efl_mono/Model.cs +++ b/src/tests/efl_mono/Model.cs @@ -3,6 +3,7 @@ using System; using System.Threading.Tasks; using System.Diagnostics.CodeAnalysis; +using Efl.Ui; #if EFL_BETA diff --git a/src/tests/efl_mono/Parts.cs b/src/tests/efl_mono/Parts.cs index 3e2da24152..e206681e1a 100644 --- a/src/tests/efl_mono/Parts.cs +++ b/src/tests/efl_mono/Parts.cs @@ -19,6 +19,7 @@ using System; using System.Diagnostics.CodeAnalysis; +using Efl.Ui; namespace TestSuite {