Is there a way to validate ALL properties in a class at once?
I have a class with various validations added to property "Getter" to validate user inputs. (The problem is that all my validations only invoke if a user input something to the field that bind to the property. Any fields that user simply bypass will not get validated)
Ideally I want to loop through each property and validate in a "Save()" method.
Is there a way to do this?
Thanks in advance
I have a class with various validations added to property "Getter" to validate user inputs. (The problem is that all my validations only invoke if a user input something to the field that bind to the property. Any fields that user simply bypass will not get validated)
Ideally I want to loop through each property and validate in a "Save()" method.
Is there a way to do this?
Thanks in advance