Author: zoltan
Date: 2007-07-09 09:01:30 -0400 (Mon, 09 Jul 2007)
New Revision: 81636

Modified:
   trunk/mcs/class/corlib/System/ChangeLog
   trunk/mcs/class/corlib/System/ModuleHandle.cs
Log:
2007-07-10  Zoltan Varga  <[EMAIL PROTECTED]>

        * ModuleHandle.cs: Add missing 2.0 stuff.


Modified: trunk/mcs/class/corlib/System/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System/ChangeLog     2007-07-09 13:00:52 UTC (rev 
81635)
+++ trunk/mcs/class/corlib/System/ChangeLog     2007-07-09 13:01:30 UTC (rev 
81636)
@@ -1,3 +1,7 @@
+2007-07-10  Zoltan Varga  <[EMAIL PROTECTED]>
+
+       * ModuleHandle.cs: Add missing 2.0 stuff.
+
 2007-07-08  Zoltan Varga  <[EMAIL PROTECTED]>
 
        * *.cs: Add missing ComVisible attributes.

Modified: trunk/mcs/class/corlib/System/ModuleHandle.cs
===================================================================
--- trunk/mcs/class/corlib/System/ModuleHandle.cs       2007-07-09 13:00:52 UTC 
(rev 81635)
+++ trunk/mcs/class/corlib/System/ModuleHandle.cs       2007-07-09 13:01:30 UTC 
(rev 81636)
@@ -59,6 +59,14 @@
                        }
                }
 
+               public int MDStreamVersion { 
+                       get {
+                               if (value == IntPtr.Zero)
+                                       throw new ArgumentNullException 
(String.Empty, "Invalid handle");
+                               return Module.GetMDStreamVersion (value);
+                       }
+               }
+
                internal void GetPEKind (out PortableExecutableKinds peKind, 
out ImageFileMachine machine)
                {
                        if (value == IntPtr.Zero)
@@ -139,6 +147,16 @@
                {
                        return value.GetHashCode ();
                }
+
+               public static bool operator == (ModuleHandle a, ModuleHandle b)
+               {
+                       return Equals (a, b);
+               }
+
+               public static bool operator != (ModuleHandle a, ModuleHandle b)
+               {
+                       return !Equals (a, b);
+               }
        }
 }
 

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

Reply via email to