Why GetAllTypes()?

Topics: Metadata Model
Jan 4, 2011 at 8:23 PM

Why there is a GetAllTypes() method in IModule?

Couldn't you just enumerate all UnitNamespaceRoot members for types definitions recursively?

That's the way I implement GetAllTypes() in my modules.

Jan 7, 2011 at 5:53 AM

It is there because of numerous user requests. It is also a useful way for the PE reader to enumerate types in the order they appear in the type table. Maintaining this order is important in some scenarios.