Browse Source

Fixed GenerateClassFields to only process actual base classes.

More specifically, TemplateParameterType was also coming up here.

Rather than checking for specific dependent types just check that we have a base class.
pull/560/head
triton 10 years ago
parent
commit
d06c42129f
  1. 2
      src/Generator/Generators/CSharp/CSharpTextTemplate.cs

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

@ -706,7 +706,7 @@ namespace CppSharp.Generators.CSharp @@ -706,7 +706,7 @@ namespace CppSharp.Generators.CSharp
public void GenerateClassFields(Class @class, Action<Field> action, bool nativeFields = false)
{
foreach (var @base in @class.Bases.Where(b => !(b.Type is DependentNameType)))
foreach (var @base in @class.Bases.Where(b => b.Class != null))
{
TypeMap typeMap;
if ((!Driver.TypeDatabase.FindTypeMap(@base.Type, out typeMap) && !@base.Class.IsDeclared) ||

Loading…
Cancel
Save