If an interface defines a ReadOnly Property, how can an implementer provide the Setter to this property?

前端 未结 5 1091
北恋
北恋 2021-01-18 04:51

Is there a way for implementers of an interface where a ReadOnly property is defined to make it a complete Read/Write Property ?

5条回答
  •  无人共我
    2021-01-18 05:03

    Now supported in Visual Studio 2015.

    What's New for Visual Basic

    Readonly Interface Properties

    You can implement readonly interface properties using a readwrite property. The interface guarantees minimum functionality, and it does not stop an implementing class from allowing the property to be set.

提交回复
热议问题