[Mono-bugs] [Bug 59665][Nor] Changed - Type.GUID is never initialized

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 28 Aug 2004 10:37:14 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by bmaurer@users.sf.net.

http://bugzilla.ximian.com/show_bug.cgi?id=59665

--- shadow/59665	2004-08-27 20:47:19.000000000 -0400
+++ shadow/59665.tmp.29583	2004-08-28 10:37:14.000000000 -0400
@@ -65,6 +65,35 @@
 ------- Additional Comments From gert.driesen@pandora.be  2004-06-09 16:54 -------
 I've committed two tests for this in (System.Reflection.Emit) 
 TypeBuilderTest to cvs.
 
 I'll see whether I can find information on how the guid is generated 
 for types.
+
+------- Additional Comments From bmaurer@users.sf.net  2004-08-28 10:37 -------
+This is very weird. If I do:
+
+cat t.cs
+class T {
+	static void Main () {
+		System.Console.WriteLine(typeof (T).GUID);
+	}
+}
+csc t.cs
+t
+del t.exe
+csc t.cs
+t
+
+I get the same output for both runs of `t'. In otherwords, this seems
+to stay the same for reach version. If I do:
+
+csc /out:tt.exe t.cs
+t
+
+I get a different GUID.
+
+So my guess is that this is some sort of hash of:
+- The assembly name
+- The class name
+
+