private void OnLeaveEvent(ZyreEventLeave leaveEvent) { var temp = LeaveEvent; // for thread safety temp?.Invoke(this, leaveEvent); }