Browse Source

Changed more overloads in `CSharpSources` to be overridable.

pull/1177/head
Joao Matos 7 years ago committed by João Matos
parent
commit
0b825e1124
  1. 4
      src/Generator/Generators/CSharp/CSharpSources.cs

4
src/Generator/Generators/CSharp/CSharpSources.cs

@ -144,7 +144,7 @@ namespace CppSharp.Generators.CSharp @@ -144,7 +144,7 @@ namespace CppSharp.Generators.CSharp
}
}
public void GenerateUsings()
public virtual void GenerateUsings()
{
PushBlock(BlockKind.Usings);
WriteLine("using System;");
@ -237,7 +237,7 @@ namespace CppSharp.Generators.CSharp @@ -237,7 +237,7 @@ namespace CppSharp.Generators.CSharp
}
}
void GenerateNamespaceFunctionsAndVariables(DeclarationContext context)
public virtual void GenerateNamespaceFunctionsAndVariables(DeclarationContext context)
{
var hasGlobalVariables = !(context is Class) && context.Variables.Any(
v => v.IsGenerated && v.Access == AccessSpecifier.Public);

Loading…
Cancel
Save