Browse Source

Avoid creation of properties from constructors.

pull/224/head
marcos henrich 11 years ago committed by triton
parent
commit
ad171a72f1
  1. 3
      src/Generator/Passes/GetterSetterToPropertyPass.cs

3
src/Generator/Passes/GetterSetterToPropertyPass.cs

@ -84,6 +84,9 @@ namespace CppSharp.Passes @@ -84,6 +84,9 @@ namespace CppSharp.Passes
if (@class == null || @class.IsIncomplete)
return false;
if (method.IsConstructor)
return false;
if (IsGetter(method))
{
var name = method.Name.Substring("get".Length);

Loading…
Cancel
Save