How much logic is too much for a property getter? For example, I have code which looks like this:
public double value
{
get
{
if (condition1
|| condition2
|| condition3
|| condition4)
{
_value = anotherValue;
}
return _value;
}
}
I have read various posts that say the code inside properties should not be expensive. But the term 'expensive' is a bit vague for me.