bindingflags

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? ...

C# GetType().GetFields problem

Hi I am using the Reflection classes in order to get all the fields inside a certain object. My problem however is that it works perfectly when the fields are inside a normal class, like: class test { string test1 = string.Empty; string test2 = string.Empty; } Here i get both test1 and test2, my problem is that i use abstractio...