Should interfaces define properties?

Posted by Otávio Décio on Stack Overflow See other posts from Stack Overflow or by Otávio Décio
Published on 2010-03-21T23:29:53Z Indexed on 2010/03/21 23:31 UTC
Read the original article Hit count: 295

Filed under:
|

Interfaces, as defined by MSDN "contain only the signatures of methods, delegates or events." However, since properties are no more than syntactic sugar for a get and set method, they are also allowed in interfaces. My question is - is there any situation where defining properties in an interface is appropriate or should we stick to the scenarios described by MSDN?

© Stack Overflow or respective owner

Related posts about interfaces

Related posts about c#