what's the meaning of the following code?

Topics: General Discussion Forum
Apr 11, 2007 at 1:22 PM
public class Payee

why do we speficy a StateValidator on the Payee class level?
should it be speficied on the State field?

Apr 12, 2007 at 2:31 AM
That is only for demo purposes and the intended usage here is to show how you can set validation at the class level instead of validating at the field level like when you add the validation attribute to the State field as you pointed out. So whenever you want to perform validation rules at the class levelm this is what you need.