On Dec 19, 2010, at 4:57 PM, mike wrote:
> For some reason, I
> thought we chose this CreateInstance() approach over the P/Invoke for
> performance reasons.

If you have concerns about P/Invoke performance, you might consider looking 
into the System.Security.SuppressUnmanagedCodeSecurityAttribute attribute:

        
http://msdn.microsoft.com/en-us/library/system.security.suppressunmanagedcodesecurityattribute.aspx

This can help speed up P/Invoke performance by disabling security-related stack 
walks on .NET.  On Mono I *believe* this won't have an effect, as CAS is 
disabled by default (as it isn't supported).

 - Jon

_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list

Reply via email to