public void Add(AutoTypeAssociation a) { if (a == null) { Debug.Assert(false); throw new ArgumentNullException("a"); } m_lWindowAssocs.Add(a); }
/// <summary> /// The add. /// </summary> /// <param name="a"> /// The a. /// </param> /// <exception cref="ArgumentNullException"> /// </exception> public void Add(AutoTypeAssociation a) { Debug.Assert(a != null); if (a == null) { throw new ArgumentNullException("a"); } this.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); }