Hi all,
Advice needed.
I'm setting a property in an object that can only accept certain values. How do I respond if the value is set to on of the disallowed values? At the moment, I am throwing an ArgumentOutOfRangeException but this seems like a silly idea as the attempted entry of these values will be common. But if I do that how do I respond? Should I set a flag on the object and check it?
Craig
Advice needed.
I'm setting a property in an object that can only accept certain values. How do I respond if the value is set to on of the disallowed values? At the moment, I am throwing an ArgumentOutOfRangeException but this seems like a silly idea as the attempted entry of these values will be common. But if I do that how do I respond? Should I set a flag on the object and check it?
Craig