Class Validator
- Namespace
- NuvTools.Validation.Annotations
- Assembly
- NuvTools.Validation.dll
Provides validation methods for objects decorated with data annotation attributes.
public static class Validator
- Inheritance
-
Validator
- Inherited Members
Methods
Validate<T>(T)
Validates an object using its data annotation attributes.
public static List<string>? Validate<T>(this T obj)
Parameters
objTThe object to validate.
Returns
Type Parameters
TThe type of the object to validate.
Exceptions
- ArgumentNullException
Thrown when
objis null.