Author: zoltan
Date: 2007-07-09 09:00:52 -0400 (Mon, 09 Jul 2007)
New Revision: 81635

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

        * Module.cs: Add new internal method GetMDStreamVersion ().


Modified: trunk/mcs/class/corlib/System.Reflection/ChangeLog
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/ChangeLog  2007-07-09 12:40:54 UTC 
(rev 81634)
+++ trunk/mcs/class/corlib/System.Reflection/ChangeLog  2007-07-09 13:00:52 UTC 
(rev 81635)
@@ -1,3 +1,7 @@
+2007-07-10  Zoltan Varga  <[EMAIL PROTECTED]>
+
+       * Module.cs: Add new internal method GetMDStreamVersion ().
+
 2007-07-09  Atsushi Enomoto  <[EMAIL PROTECTED]>
 
        * CustomAttributeNamedArgument.cs, CustomAttributeTypedArgument.cs:

Modified: trunk/mcs/class/corlib/System.Reflection/Module.cs
===================================================================
--- trunk/mcs/class/corlib/System.Reflection/Module.cs  2007-07-09 12:40:54 UTC 
(rev 81634)
+++ trunk/mcs/class/corlib/System.Reflection/Module.cs  2007-07-09 13:00:52 UTC 
(rev 81635)
@@ -107,10 +107,16 @@
                        get;
                }
 
-               public extern int MDStreamVersion {
-                       [MethodImplAttribute (MethodImplOptions.InternalCall)]
-                       get;
+               public int MDStreamVersion {
+                       get {
+                               if (_impl == IntPtr.Zero)
+                                       throw new NotSupportedException ();
+                               return GetMDStreamVersion (_impl);
+                       }
                }
+
+               [MethodImplAttribute (MethodImplOptions.InternalCall)]
+               internal static extern int GetMDStreamVersion (IntPtr 
module_handle);
 #endif
        
                public virtual Type[] FindTypes(TypeFilter filter, object 
filterCriteria) 

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

Reply via email to