Validator
Parameters
T
the type of property
validate
the method by which the property is validated, which returns null if the property is valid, and returns ValidationInfo otherwise
the type of property
the method by which the property is validated, which returns null if the property is valid, and returns ValidationInfo otherwise