protected Event(EventType type, int index, string name, ThreadGroup group) { this.type = type; this.index = index; this.name = name; this.group = group; this.UniqueID = GetNextEventIndex (); if (group == null) throw new NullReferenceException (); }