[Mono-devel-list] Overcoming PInvoke limitations in e.g. Mono.Posix

Sebastien Pouliot spouliot at videotron.ca
Fri Oct 8 08:18:38 EDT 2004

>> Three solutions.  One: generate only the fields which can be assumed to
>> there (bail out if they aren't).  Two: generate all fields, and have
>> check explicitly (through reflection) that they exist.
>Yuck.  *Requiring* Reflection to use your structures is broken.
>Especially if we want to implement CAS (Code Access Security) at some

Actually it's being implemented right now ;-)

> and allow access to Mono.Posix.  Reflection requires a CAS
>permission to be used.

True, but so is using unmanaged code (not that I like the idea of requiring
reflection in Mono.Posix ;-).


Sebastien Pouliot
home: spouliot at videotron.ca
blog: http://pages.infinit.net/ctech/poupou.html

More information about the Mono-devel-list mailing list