I want to iterate through AssemblyDefinition.MainModule.Types, and identify which of those TypeDefinitions descend from a given base class.
But I don't know how to walk a TypeDefinition's ancestry. I found TypeDefinition.BaseType, which looks like it should get me from a TypeDefinition to its base class. However, BaseType is of type TypeReference, not TypeDefinition. TypeReference doesn't have a BaseType, so I can't keep walking up the inheritance tree. How can I write code that answers the question "does this TypeDefinition descend from my known base class"? --~--~---------~--~----~------------~-------~--~----~ -- mono-cecil -~----------~----~----~----~------~----~------~--~---
