public void Clear() { this.m_enterAction = null; this.m_exitAction = null; if (this.m_pars != null) { using (ListView <Property> .Enumerator enumerator = this.m_pars.GetEnumerator()) { while (enumerator.MoveNext()) { Property current = enumerator.get_Current(); Property.DeleteFromCache(current); } } this.m_pars.Clear(); this.m_pars = null; } if (this.m_attachments != null) { this.m_attachments.Clear(); this.m_attachments = null; } if (this.m_children != null) { this.m_children.Clear(); this.m_children = null; } }
public void Clear() { m_enterAction = null; m_exitAction = null; if (this.m_pars != null) { foreach (Property pProperty in this.m_pars) { Property.DeleteFromCache(pProperty); } this.m_pars.Clear(); this.m_pars = null; } if (this.m_attachments != null) { this.m_attachments.Clear(); this.m_attachments = null; } if (this.m_children != null) { this.m_children.Clear(); this.m_children = null; } }