Browse Source

CLIHeadersTemplate.cs now always tries to generate properties even when it is a value class. This is done because now fields should be converted to properties with FieldToPropertyPass.

pull/16/head
marcos henrich 13 years ago
parent
commit
78ab63086a
  1. 4
      src/Generator/Generators/CLI/CLIHeadersTemplate.cs

4
src/Generator/Generators/CLI/CLIHeadersTemplate.cs

@ -213,9 +213,7 @@ namespace CppSharp.Generators.CLI @@ -213,9 +213,7 @@ namespace CppSharp.Generators.CLI
GenerateClassFields(@class);
// Generate a property for each field if class is not value type
if (@class.IsRefType)
GenerateClassProperties(@class);
GenerateClassProperties(@class);
GenerateClassEvents(@class);
GenerateClassMethods(@class);

Loading…
Cancel
Save