diff --git a/src/Generator/Generators/CSharp/CSharpGenerator.cs b/src/Generator/Generators/CSharp/CSharpGenerator.cs index 3282c3d6..d31a0852 100644 --- a/src/Generator/Generators/CSharp/CSharpGenerator.cs +++ b/src/Generator/Generators/CSharp/CSharpGenerator.cs @@ -17,7 +17,7 @@ namespace CppSharp.Generators.CSharp { var outputs = new List(); - var gen = new CSharpSources(Context, units); + var gen = new CSharpSources(Context, units) { TypePrinter = typePrinter }; outputs.Add(gen); return outputs; diff --git a/src/Generator/Generators/CSharp/CSharpSources.cs b/src/Generator/Generators/CSharp/CSharpSources.cs index 700ba75f..bae87c73 100644 --- a/src/Generator/Generators/CSharp/CSharpSources.cs +++ b/src/Generator/Generators/CSharp/CSharpSources.cs @@ -124,7 +124,7 @@ namespace CppSharp.Generators.CSharp public class CSharpSources : CodeGenerator { - public CSharpTypePrinter TypePrinter { get; protected set; } + public CSharpTypePrinter TypePrinter { get; set; } public CSharpExpressionPrinter ExpressionPrinter { get; protected set; } public override string FileExtension => "cs";