Archive for Ramblings

When should I write a property?

From the blog “Fabulous adventures in coding“:

One of the questions I’m asked frequently regarding design of C# classes is “should this be a property or a method?” Here are my guidelines:

It was one of those articles [link to article] lingering in an unread Codeproject newsletter I hadn’t gotten around to reading (shame on me) and was about to delete whilst tidying my inbox but one of those rare blog entries I read in its entirety – Including comments.

Read more