IParameterValidator Interface
Provides a method for validating that a parameter is and not null.
public interface IParameterValidatorMethods
IParameterValidator.Required<T>(T, string) Method
Validates that a parameter is and not null.
void Required<T>(T? value, string name)
where T : class;Type parameters
T
The type of the parameter.
Parameters
value T
The value of the parameter.
name System.String
The name of the parameter.