|
|
@ -248,7 +248,9 @@ namespace CppSharp.Generators.CSharp |
|
|
|
GenerateClassTemplateSpecializationInternal(@class); |
|
|
|
GenerateClassTemplateSpecializationInternal(@class); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (context.HasFunctions || (!(context is Class) && context.Variables.Any( |
|
|
|
if (context.Functions.Any(f => f.IsGenerated) || |
|
|
|
|
|
|
|
(!(context is Class) && |
|
|
|
|
|
|
|
context.Variables.Any( |
|
|
|
v => v.IsGenerated && v.Access == AccessSpecifier.Public))) |
|
|
|
v => v.IsGenerated && v.Access == AccessSpecifier.Public))) |
|
|
|
{ |
|
|
|
{ |
|
|
|
PushBlock(CSharpBlockKind.Functions); |
|
|
|
PushBlock(CSharpBlockKind.Functions); |
|
|
|