public void Delete() { TicketMgr.Instance.lck.EnterWriteLock(); try { if (m_previous != null) { m_previous.m_next = m_next; } if (m_next != null) { m_next.m_previous = m_previous; } TicketMgr instance = TicketMgr.Instance; if (this == instance.first) { instance.first = null; } if (this == instance.last) { instance.last = null; } if (m_handler != null) { m_handler.HandlingTicket = null; m_handler = null; } if (m_owner != null) { m_owner.Ticket = null; } TicketMgr.Instance.ticketsById.Remove(m_charId); } finally { TicketMgr.Instance.lck.ExitWriteLock(); } }
public void Dispose() { mgr = null; current = null; }
public TicketEnumerator(TicketMgr mgr) { this.mgr = mgr; }
public void Dispose() { this.mgr = (TicketMgr)null; this.current = (Ticket)null; }