Timeline for Why does C# allow properties in interfaces?
Current License: CC BY-SA 3.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 19, 2016 at 6:01 | comment | added | Trey Mack | Those "property methods" should be quick though, like no DB lookups or anything. There's an implied contract that property access is fast, Get* methods can be slow. | |
Aug 2, 2014 at 20:52 | comment | added | radarbob | +1 Properties are methods! yes! I like writing Propertymethods but code-reviewing co-workers don't see it that way and we really miss opportunities for some nice expressive encapsulations in our programs. | |
Jul 24, 2014 at 9:01 | comment | added | Stephen | Sometimes there will be no backing field. Though it would be rare to define both a get and a set and not have a backing field for it. | |
Jul 23, 2014 at 21:15 | history | answered | Roman Reiner | CC BY-SA 3.0 |