* SecurityManager.cs: Changed method argument of
LinkDemandSecurityException to IntPtr and removed the assembly
argument (which can be gotten to via the method), to avoid having
to embed reference object values in the native code.
svn path=/trunk/mcs/; revision=84932
+2007-08-28 Mark Probst <mark.probst@gmail.com>
+
+ * SecurityManager.cs: Changed method argument of
+ LinkDemandSecurityException to IntPtr and removed the assembly
+ argument (which can be gotten to via the method), to avoid having
+ to embed reference object values in the native code.
+
2007-08-20 Mark Probst <mark.probst@gmail.com>
* SecurityManager.cs: Changed arguments of MethodAccessException
}
// we try to provide as much details as possible to help debugging
- private static void LinkDemandSecurityException (int securityViolation, Assembly a, MethodInfo method)
+ private static void LinkDemandSecurityException (int securityViolation, IntPtr methodHandle)
{
+ RuntimeMethodHandle runtimeHandle = new RuntimeMethodHandle (methodHandle);
+ MethodInfo method = (MethodInfo)(MethodBase.GetMethodFromHandle (runtimeHandle));
+ Assembly a = method.DeclaringType.Assembly;
+
string message = null;
AssemblyName an = null;
PermissionSet granted = null;