When to allow properties to change values or only use methods

  • Thread starter Thread starter Andy B.
  • Start date Start date
A

Andy B.

When is a good way to tell if you should allow a property to change a value
or just to let a method do it?
 
As you can set the property by its value, then it is in my idea the best
simple set a property to that value.

If you need to use externals to set that property, then it is in my idea the
best to use a method.

Whatever.SetChangedDateTimeToCurrentRealTime ' should be a method
Whatever.TheChangeDateTime = Now 'should be a property

jmo

Cor
 
Back
Top