/// <summary> /// Creates a copy of the mailbox list view item. /// </summary> /// <returns>The mailbox list view item.</returns> public MailboxListViewItem Copy() { MailboxListViewItem copy = (MailboxListViewItem)this; copy.Mailbox = this.Mailbox.Copy(); return(copy); }
/// <summary> /// Determines whether this instance and another specified MailboxListViewItem object have the same value. /// </summary> /// <param name="obj">The MailboxListViewItem to compare to this instance.</param> /// <returns>true if the value of the value parameter is the same as this instance; otherwise, false.</returns> public override bool Equals(object obj) { MailboxListViewItem mailboxListViewItem = (MailboxListViewItem)obj; return(Mailbox.FullName.Equals(mailboxListViewItem.Mailbox.FullName, StringComparison.OrdinalIgnoreCase)); }