Why does sealed override of a property in C# copy not overriden accessor from base type?
问题 In C# overriding auto-property and providing only one accessor makes reflection via PropertyInfo "lose" the other one, even though it is defined in base class. It can look strange at a first glance, but seems to be reasonable after more detailed analysis. However, changing override to sealed override also changes this behavior and allows to get all accessors: using System.Reflection; using NUnit.Framework; [TestFixture] public class PropertySealedOverrideReflectionTests { public class Base {