Author: spouliot
Date: 2005-03-24 15:38:04 -0500 (Thu, 24 Mar 2005)
New Revision: 42237

Modified:
   trunk/mcs/class/corlib/System.Reflection.Emit/ChangeLog
   trunk/mcs/class/corlib/System.Reflection.Emit/MethodRental.cs
Log:
2005-03-24  Sebastien Pouliot  <[EMAIL PROTECTED]>

        * MethodRental.cs: Added Demand for UnmanagedCode on SwapMethodBody 
        method.



Modified: trunk/mcs/class/corlib/System.Reflection.Emit/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Reflection.Emit/ChangeLog     2005-03-24 
19:59:50 UTC (rev 42236)
+++ trunk/mcs/class/corlib/System.Reflection.Emit/ChangeLog     2005-03-24 
20:38:04 UTC (rev 42237)
@@ -1,3 +1,8 @@
+2005-03-24  Sebastien Pouliot  <[EMAIL PROTECTED]>
+
+       * MethodRental.cs: Added Demand for UnmanagedCode on SwapMethodBody 
+       method.
+
 2005-03-16  Zoltan Varga  <[EMAIL PROTECTED]>
 
        * MethodBuilder.cs: Add internal BestFitMapping and 

Modified: trunk/mcs/class/corlib/System.Reflection.Emit/MethodRental.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection.Emit/MethodRental.cs       
2005-03-24 19:59:50 UTC (rev 42236)
+++ trunk/mcs/class/corlib/System.Reflection.Emit/MethodRental.cs       
2005-03-24 20:38:04 UTC (rev 42237)
@@ -1,15 +1,11 @@
 //
-// System.Reflection.Emit/ILGenerator.cs
+// System.Reflection.Emit/MethodRental.cs
 //
 // Author:
 //   Zoltan Varga ([EMAIL PROTECTED])
 //
-// (C) 2004 Novell (http://www.novell.com)
+// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
 //
-
-//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
-//
 // Permission is hereby granted, free of charge, to any person obtaining
 // a copy of this software and associated documentation files (the
 // "Software"), to deal in the Software without restriction, including
@@ -30,6 +26,8 @@
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
 
+using System.Security.Permissions;
+
 namespace System.Reflection.Emit
 {
        public sealed class MethodRental {
@@ -41,6 +39,7 @@
                }
 
                [MonoTODO]
+               [SecurityPermission (SecurityAction.Demand, UnmanagedCode = 
true)]
                public static void SwapMethodBody (Type cls, int methodtoken, 
IntPtr rgIL, int methodSize, int flags)
                {
                        if (methodSize <= 0 || methodSize >= 0x3f0000) {

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to