Table of Contents

Method Validate

Namespace
Skyline.DataMiner.Net.Ticketing.Validators
Assembly
SLNetTypes.dll

Validate(Ticket, object)

Verifies whether the specified object is known by the corresponding generic enum.

public bool Validate(Ticket ticket, object obj)

Parameters

ticket Ticket

A Ticket instance.

obj object

The object to be verified.

Returns

bool

true if obj is of type GenericEnumEntry<T> and this entry is defined in the generic enum; otherwise, false.

true if obj is of type T and this value is defined in the generic enum; otherwise, false.