In C#, when I'm reflecting over a derived type, how come I don't see base classes' static fields?
I've tried both type.GetFields(BindingFlags.Static) and type.GetFields().
type.GetFields(BindingFlags.Static)
type.GetFields()
Set the BindingFlags.FlattenHierarchy enumeration to Static and this will also search static members. More information: http://msdn.microsoft.com/en-us/library/system.reflection.bindingflags.aspx