Browse Source

Call the default constructors for value types so all fields are initialized.

pull/1/head
triton 13 years ago
parent
commit
f9accf226b
  1. 3
      src/Generator/Generators/CSharp/CSharpTextTemplate.cs

3
src/Generator/Generators/CSharp/CSharpTextTemplate.cs

@ -1073,6 +1073,9 @@ namespace CppSharp.Generators.CSharp @@ -1073,6 +1073,9 @@ namespace CppSharp.Generators.CSharp
PopIndent();
}
if (@class.IsValueType)
WriteLineIndent(": this()");
return hasBase;
}

Loading…
Cancel
Save