5

I have a method named IsDone. This method does some checks and returns true or false.

Is there any benefit in using a Property without a setter instead?

1 Answers1

4

If you don't modify the internal state and the checks does not have a lot of overhead a property is more appropriate. This article from MSDN provides some good guidelines to choose method vs property https://msdn.microsoft.com/en-us/library/ms229054(v=vs.100).aspx

Chamindu
  • 328