Override abstract readonly property to read/write property
问题 I would like to only force the implementation of a C# getter on a given property from a base abstract class. Derived classes might, if they want, also provide a setter for that property for public use of the statically bound type. Given the following abstract class: public abstract class Base { public abstract int Property { get; } } If I want a derived class that also implements a setter, I could naively try: public class Derived : Base { public override int Property { get { return field; }