[Mono-devel-list] Enums in mono c api

Joe Ante joe at otee.dk
Thu Mar 31 08:57:34 EST 2005


> You need to know the type of the enum: ususally it's a int32, but
> a different type can be specified. Since you must control the
> assembly the icall is defined in, you should also know what type
> the enum has.
Ok so in C# when i write:

enum FooEnum { A = 0, B, C, D }

And then i have a icall which receives FooEnum, under what circumstances can
FooEnum be passed as a non- int32?

I have control over the C# and C++ code that contains the dll and icalls.
So how do i make sure they never become non-int32?
 
Joachim





More information about the Mono-devel-list mailing list