Skip to content

Commit 0b825e1

Browse files
committed
Changed more overloads in CSharpSources to be overridable.
1 parent 2a7f36f commit 0b825e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Generator/Generators/CSharp/CSharpSources.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ group s by s.TemplatedDecl.TemplatedClass into template
144144
}
145145
}
146146

147-
public void GenerateUsings()
147+
public virtual void GenerateUsings()
148148
{
149149
PushBlock(BlockKind.Usings);
150150
WriteLine("using System;");
@@ -237,7 +237,7 @@ private IEnumerable<Class> EnumerateClasses(DeclarationContext context)
237237
}
238238
}
239239

240-
void GenerateNamespaceFunctionsAndVariables(DeclarationContext context)
240+
public virtual void GenerateNamespaceFunctionsAndVariables(DeclarationContext context)
241241
{
242242
var hasGlobalVariables = !(context is Class) && context.Variables.Any(
243243
v => v.IsGenerated && v.Access == AccessSpecifier.Public);

0 commit comments

Comments
 (0)