Forráskód Böngészése

2003-06-10 Zoltan Varga <[email protected]>

	* Module.cs (Mono_GetGuid): New method to return the GUID of the
	module.

svn path=/trunk/mcs/; revision=15272
Zoltan Varga 22 éve
szülő
commit
18a937ddee

+ 5 - 0
mcs/class/corlib/System.Reflection/ChangeLog

@@ -1,3 +1,8 @@
+2003-06-10  Zoltan Varga  <[email protected]>
+
+	* Module.cs (Mono_GetGuid): New method to return the GUID of the
+	module.
+
 2003-05-21  Zoltan Varga  <[email protected]>
 
 	* Module.cs: Implement GetField and its friends.

+ 9 - 0
mcs/class/corlib/System.Reflection/Module.cs

@@ -190,6 +190,15 @@ namespace System.Reflection {
 			return "Reflection.Module: " + name;
 		}
 
+		// Mono Extension: returns the GUID of this module
+		public Guid Mono_GetGuid ()
+		{
+			return new Guid (GetGuidInternal ());
+		}
+
+		[MethodImplAttribute (MethodImplOptions.InternalCall)]
+		private extern string GetGuidInternal ();
+
 		[MethodImplAttribute (MethodImplOptions.InternalCall)]
 		private extern Type GetGlobalType ();
 	}