public void Clear() { lock (m_constraints) { foreach (BSConstraint cons in m_constraints) { cons.Dispose(); } m_constraints.Clear(); } }