Skip to content

Commit

Permalink
Materialize additional supertype interfaces before adding them to the…
Browse files Browse the repository at this point in the history
… interfaces

The additional supertypes are derived via a LINQ expression on the interfaces. So, none cannot add the enumerable directly as this changes the enumerated collection.
  • Loading branch information
MDoerner committed Nov 3, 2020
1 parent 54567b4 commit 1a02571
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@ private static IEnumerable<string> SuperTypeNamesForDocumentFromComType(IComType
//Since we do not have a declaration for the hidden interface, we have to go one more step up the hierarchy.
var additionalInterfaces = relevantInterfaces
.Where(i => i.Name.Equals("_" + comModule.Name))
.SelectMany(i => i.InheritedInterfaces);
.SelectMany(i => i.InheritedInterfaces)
.ToList();

relevantInterfaces.AddRange(additionalInterfaces);

Expand Down

0 comments on commit 1a02571

Please sign in to comment.