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 [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=75366 --- shadow/75366 2005-07-01 13:33:35.000000000 -0400 +++ shadow/75366.tmp.20322 2005-07-01 13:51:20.000000000 -0400 @@ -1,13 +1,13 @@ Bug#: 75366 Product: Mono: Runtime Version: 1.1 OS: unknown OS Details: mono svn 23.06.2005 -Status: RESOLVED -Resolution: WONTFIX +Status: REOPENED +Resolution: Severity: Unknown Priority: Major Component: misc AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] QAContact: [EMAIL PROTECTED] @@ -212,6 +212,36 @@ `A<int>'. ------- Additional Comments From [EMAIL PROTECTED] 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. + +------- Additional Comments From [EMAIL PROTECTED] 2005-07-01 13:51 ------- +using System; +using System.Reflection; + +class Foo <T> +{ + public T foo; +} + +class X +{ + static void Main () + { + foreach (FieldInfo fi in typeof (Foo<int>).GetFields ()) { + Console.WriteLine (fi); + Console.WriteLine (fi.ReflectedType); + Console.WriteLine (fi.DeclaringType); + + } + + } +} + [EMAIL PROTECTED] ~]$ mono x.exe +System.Int32 foo +Foo`1[System.Int32] +Foo`1[System.Int32] + +I don't think this is a wontfix. The use of reflection is correct. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
