[Mono-dev] Iterating the classes of a mono image using the embedding API

Paolo Molaro lupus at ximian.com
Tue Dec 5 13:25:09 EST 2006

On 12/05/06 Robert Jordan wrote:
> Argiris Kirtzidis wrote:
> > Is there a way to get all the classes/types defined in a image using the embedding API ? I looked through all the functions and I can't find one that will allow iteration of all the classes, am I missing something ?
> > 
> > How one would get a list of the classes that a mono image contains using only plain C ?
> There is no other (documented) way than using System.Reflection.

Iterating the TypeDef table and calling mono_class_get () is the way to
go (I posted mostly the same sample code to a mono list a while ago).


lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better

More information about the Mono-devel-list mailing list