[Mono-bugs] [Bug 27473][Maj] New - Type.GetProperties don't get parent type(s) properties

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
6 Jul 2002 19:49:28 -0000


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=27473

--- shadow/27473	Sat Jul  6 15:49:28 2002
+++ shadow/27473.tmp.2765	Sat Jul  6 15:49:28 2002
@@ -0,0 +1,83 @@
+Bug#: 27473
+Product: Mono/Runtime
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gonzalo@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Type.GetProperties don't get parent type(s) properties
+
+Description of Problem:
+type.GetProperties () only get the properties declared in 'type' but it
+should also return the ones in its parent(s) type(s).
+
+
+Steps to reproduce the problem:
+1. Compile this program (-r System.Web) and run
+-----------------
+using System;
+using System.Reflection;
+using System.Web.UI.WebControls;
+
+public class MyClass
+{
+        public static void Main ()
+        {
+                PropertyInfo [] props = typeof
+(RequiredFieldValidator).GetProperties ();
+                foreach (PropertyInfo prop in props)
+                        Console.WriteLine (prop.Name);
+        }
+}
+-----------------
+
+
+Actual Results:
+InitialValue
+
+Expected Results:
+InitialValue
+ForeColor
+ControlToValidate
+ErrorMessage
+EnableClientScript
+Enabled
+IsValid
+Display
+Text
+AccessKey
+Attributes
+BackColor
+BorderColor
+BorderWidth
+BorderStyle
+ControlStyle
+ControlStyleCreated
+CssClass
+Style
+Font
+Height
+TabIndex
+ToolTip
+Width
+ClientID
+ID
+EnableViewState
+NamingContainer
+BindingContainer
+Page
+Parent
+TemplateSourceDirectory
+Site
+Visible
+UniqueID
+Controls