Why doesn't Type.GetFields() return backing fields in a base class?
问题 In C#, if you use Type.GetFields() with a type representing a derived class, it will return a) all explicitly declared fields in the derived class, b) all backing fields of automatic properties in the derived class and c) all explicitly declared fields in the base class. Why are the d) backing fields of automatic properties in the base class missing? Example: public class Base { public int Foo { get; set; } } public class Derived : Base { public int Bar { get; set; } } class Program { static