How would you structure your code in the following scenario:
Several business objects (e.g.Person, House, etc), and between them, you need to validate the user inputs (which come in from textboxes). Would that go in either:
- Each business object
- The winforms codebehind
- A seperate (static?) class.
Thanks
Each business object. I have classically made each one implement an IValidator interface that spits out all validation errors for the object.