[Mono-bugs] [Bug 69365][Nor] New - BindingFlags.IgnoreCase ignored by Type.GetField()

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 11 Nov 2004 12:07:26 -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 jason@379.com.

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

--- shadow/69365	2004-11-11 12:07:26.000000000 -0500
+++ shadow/69365.tmp.24712	2004-11-11 12:07:26.000000000 -0500
@@ -0,0 +1,49 @@
+Bug#: 69365
+Product: Mono: Runtime
+Version: 1.0
+OS: other
+OS Details: Fedora Core 2
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: jason@379.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: BindingFlags.IgnoreCase ignored by Type.GetField()
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+The IgnoreCase flag is ignored by Type.GetField().
+
+
+Steps to reproduce the problem:
+1. Create a class:
+
+  public class IgnoreCaseTest {
+    public int MyField;
+  }
+
+2. Query the class with reflection:
+
+  IgnoreCaseTest c = new IgnoreCaseTest();
+  BindingFlags flags =
+BindingFlags.Instance|BindingFlags.Public|BindingFlags.IgnoreCase;
+  FieldInfo f = c.GetType.GetField("myfield", flags);
+
+Actual Results:
+f is null
+
+Expected Results:
+f should be a FieldInfo for the "MyField" field.
+
+How often does this happen? 
+Every time.
+
+Additional Information: