Class EnumValidator<T>
- Namespace
- Skyline.DataMiner.Net.Ticketing.Validators
- Assembly
- SLNetTypes.dll
Represents a generic enum validator.
[JsonObject(MemberSerialization.OptIn)]
[Serializable]
public class EnumValidator<T> : ITicketFieldValidator
Type Parameters
T
The underlying type of the generic enum to validate.
- Inheritance
-
EnumValidator<T>
- Implements
- Extension Methods
Constructors
- EnumValidator()
Initializes a new instance of the EnumValidator<T> class.
- EnumValidator(GenericEnum<T>)
Initializes a new instance of the EnumValidator<T> class with the specified generic enum.
Properties
- genericEnum
Gets the generic enum this validator corresponds with.
Methods
- Validate(Ticket, object)
Verifies whether the specified object is known by the corresponding generic enum.