Constructor RequiredTypeValidator
- Namespace
- Skyline.DataMiner.Net.Ticketing.Validators
- Assembly
- SLNetTypes.dll
RequiredTypeValidator()
Initializes a new instance of the RequiredTypeValidator<T> class.
public RequiredTypeValidator()
Remarks
Creates a generic type validator that rejects null values.
RequiredTypeValidator(bool)
Initializes a new instance of the RequiredTypeValidator<T> class using a Boolean to indicate whether null reference values are allowed .
public RequiredTypeValidator(bool required)
Parameters
required
booltrue
if the field is required (value must not be null,false
if the field is not required (null value is allowed).
Remarks
Creates a generic type validator where you can specify whether null values are allowed.