diff --git a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs index 8a29bd23..0bd42eab 100644 --- a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs +++ b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs @@ -1073,6 +1073,9 @@ namespace CppSharp.Generators.CSharp PopIndent(); } + if (@class.IsValueType) + WriteLineIndent(": this()"); + return hasBase; }