BindingFlags.IgnoreCase not working for Type.GetProperty()?

Imagine the following

A type T has a field Company.
When executing the following method it works perfectly:

Type t = typeof(T);
t.GetProperty("Company")

Whith the following call I get null though

Type t = typeof(T);
t.GetProperty("company", BindingFlags.IgnoreCase)

Anybody got an idea?

3 Answers
3

Leave a Comment