Interface should not have properties?

后端 未结 13 1014
攒了一身酷
攒了一身酷 2021-01-07 22:43

My office colleague told me today that is bad practice to use properties in interfaces. He red that in some MSDN article(s), which I couldn\'t find (well I was trying few ti

相关标签:
13条回答
  • 2021-01-07 23:19

    I can think of no documentation to support that premise. Additionally I can think of many examples in the BCL which do quite the opposite. Take a look at pretty much any of the collection interfaces and you will see properties.

    0 讨论(0)
提交回复
热议问题