isValid<TModel> method

bool isValid<TModel>(
  1. TValue value,
  2. TModel model
)

Verify if the model is valid compared to the current validator You must add value parameter, this one is your current property to validate. model parameter is also required, even if your custom validator won't use it. It reprensents your full object model with all values. Maybe you would validate a property in comparison to others.

Implementation

bool isValid<TModel>(TValue value, TModel model);