/// <summary> /// Removes specified item from the collection. /// </summary> /// <param name="value">Address to remove.</param> /// <exception cref="ArgumentNullException">Is raised when <b>value</b> is null reference value.</exception> public void Remove(Mail_t_Address value) { if (value == null) { throw new ArgumentNullException("value"); } m_pList.Remove(value); }
/// <summary> /// Adds specified address to the end of the collection. /// </summary> /// <param name="value">Address to add.</param> /// <exception cref="ArgumentNullException">Is raised when <b>value</b> is null reference value.</exception> public void Add(Mail_t_Address value) { if (value == null) { throw new ArgumentNullException("value"); } m_pList.Add(value); m_IsModified = true; }
/// <summary> /// Inserts a address into the collection at the specified location. /// </summary> /// <param name="index">The location in the collection where you want to add the item.</param> /// <param name="value">Address to insert.</param> /// <exception cref="ArgumentOutOfRangeException">Is raised when <b>index</b> is out of range.</exception> /// <exception cref="ArgumentNullException">Is raised when <b>value</b> is null reference.</exception> public void Insert(int index, Mail_t_Address value) { if (index < 0 || index > m_pList.Count) { throw new ArgumentOutOfRangeException("index"); } if (value == null) { throw new ArgumentNullException("value"); } m_pList.Insert(index, value); m_IsModified = true; }