[Mono-list] Proposed fix for bugzilla #32063

Tim Haynes thaynes@openlinksw.com (Tim Haynes)
Fri, 11 Oct 2002 15:36:30 +0100


--=-=-=

Hi,

Please find attached a short proposed fix for #32063, making
System.Type.GetConstructors() return constructors if called without any
parameters, as well.

Cheers,

~Tim
-- 
Product Development Consultant
OpenLink Software
Tel: +44 (0) 20 8681 7701
Web: <http://www.openlinksw.com>
Universal Data Access & Data Integration Technology Providers


--=-=-=
Content-Disposition: attachment; filename=b32063.diff
Content-Description: fix for 32063

Index: class/corlib/System/Type.cs
===================================================================
RCS file: /mono/mcs/class/corlib/System/Type.cs,v
retrieving revision 1.60
diff -u -b -r1.60 Type.cs
--- class/corlib/System/Type.cs	19 Sep 2002 14:04:42 -0000	1.60
+++ class/corlib/System/Type.cs	11 Oct 2002 13:08:06 -0000
@@ -763,7 +763,7 @@
 
 		public ConstructorInfo[] GetConstructors ()
 		{
-			return GetConstructors (BindingFlags.Public | BindingFlags.NonPublic);
+			return GetConstructors (BindingFlags.Public | BindingFlags.Instance);
 		}
 		
 		public abstract ConstructorInfo[] GetConstructors (BindingFlags bindingAttr);

--=-=-=--