Browse Source

Check if the class has a base class instead of just a base.

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

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

@ -816,7 +816,7 @@ namespace CppSharp.Generators.CSharp
private bool GenerateClassConstructorBase(Class @class, Method method) private bool GenerateClassConstructorBase(Class @class, Method method)
{ {
var hasBase = @class.HasBase && !@class.Bases[0].Class.Ignore; var hasBase = @class.HasBaseClass && !@class.Bases[0].Class.Ignore;
if (hasBase && !@class.IsValueType) if (hasBase && !@class.IsValueType)
{ {

Loading…
Cancel
Save