public void Add(AutoTypeAssociation a) { if (a == null) { Debug.Assert(false); throw new ArgumentNullException("a"); } m_lWindowAssocs.Add(a); }
public void Insert(int iIndex, AutoTypeAssociation a) { if ((iIndex < 0) || (iIndex > m_lWindowAssocs.Count)) { throw new ArgumentOutOfRangeException("iIndex"); } if (a == null) { Debug.Assert(false); throw new ArgumentNullException("a"); } m_lWindowAssocs.Insert(iIndex, a); }