/// <summary> /// Checks whether the given event type was used /// </summary> private bool IsEventTypeOn(AuditEventType lookedForType, AuditEventType[] userSelectedTypes) { if (userSelectedTypes.Contains(lookedForType)) { return true; } return false; }