Argiris Kirtzidis wrote:
> On 12/05/06 Paolo Molaro wrote:
>
> I> terating 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).
>
> Is there any chance an iterator function (like the
> 'mono_class_get_methods')
On 12/05/06 Paolo Molaro wrote:
I> terating 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).
Is there any chance an iterator function (like the 'mono_class_get_methods')
gets added to the embedding API,
so that
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 ?
> >
> >
Ok, after some digging into the Mono internals, I found a way. I post it in
case someone else finds it useful too:
static void
print_all_types (MonoImage *image)
{
MonoClass *klass;
int i;
int rows = mono_image_get_table_rows (image, MONO_TABLE_TYPEDEF);
/* we start the count from 1 because
Argiris Kirtzidis 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
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