[Mono-dev] "safe" way about Marshal.UnsafeAddrOfPinnedArrayElement

GaoXianchao gxcmaillist at gmail.com
Tue Apr 18 00:27:33 EDT 2006


hi all,
I'm wrapping epoll api on linux.
To pass address of managed struct array to unmanaged code, I use
Marshal.UnsafeAddrOfPinnedArrayElement . But the method is "unsafe".
Is there a "safe" way to do what the Marshal.UnsafeAddrOfPinnedArrayElement do?


thanks a lot~


More information about the Mono-devel-list mailing list