[Mono-bugs] [Bug 50927][Wis] New - Type.GetInterfaces returns duplicated inetrface

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 13 Nov 2003 08:15:23 -0500 (EST)


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 gonzalo@ximian.com.

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

--- shadow/50927	2003-11-13 08:15:23.000000000 -0500
+++ shadow/50927.tmp.32392	2003-11-13 08:15:23.000000000 -0500
@@ -0,0 +1,39 @@
+Bug#: 50927
+Product: Mono/Runtime
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gonzalo@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Type.GetInterfaces returns duplicated inetrface
+
+Compile and run:
+-------------
+using System;
+using System.Reflection;
+
+class C
+{
+	static void Main ()
+	{
+		Type t = typeof (UriFormatException);
+		foreach (Type x in t.GetInterfaces ())
+			Console.WriteLine (x);
+	}
+}
+-------------
+Actual results:
+System.Runtime.Serialization.ISerializable
+System.Runtime.Serialization.ISerializable
+
+Expected results:
+System.Runtime.Serialization.ISerializable