[Mono-bugs] [Bug 75366][Maj] Changed - SRE uses Reflected not Declaring type for token

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Jul 1 13:33:35 EDT 2005

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 martin at ximian.com.


--- shadow/75366	2005-07-01 04:56:40.000000000 -0400
+++ shadow/75366.tmp.20084	2005-07-01 13:33:35.000000000 -0400
@@ -207,6 +207,11 @@
     MemberInfo[] mi = t.GetMembers ("foo", MemberTypes.Field);
     FieldInfo fi = (FieldInfo) mi [0];
 This returns a FieldInfo who's `DeclaringType` is the generic type
 definition `A<T>' and who's `ReflectedType' is the generic instance
+------- Additional Comments From martin at ximian.com  2005-07-01 13:33 -------
+One thing we could possibly do is modify `DeclaringType' to return a
+generic instance, too.  Nobody seems to be using `DeclaringType', so
+changing its behavior is probably ok.

More information about the mono-bugs mailing list