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

Rafael Teixeira monoman at gmail.com
Tue Dec 5 10:22:44 EST 2006


Hi Argiris,

You can make calls in the managed classes for reflection or from Mono.Cecil.
But see that you need to repeat it for all managed libraries, already
loaded, or that you are interested and so you load, as even a
compacted image of Mono contains many independent libraries just
attached in a single file, and with some info to locate them in this
blob.

AFAIK in the embedding API in pure C, you'll probably have only a list
of classes already loaded and/or jitted , not of all that the ones the
program may be able to use.

Fun,

On 12/5/06, Argiris Kirtzidis <akyrtzi at gmail.com> wrote:
>
>
> Hi all,
>
> 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 ?
>
> Argiris
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
>
>


-- 
Rafael "Monoman" Teixeira
---------------------------------------
"The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man." George Bernard Shaw



More information about the Mono-devel-list mailing list