Exemplo n.º 1
0
        /// <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);
        }
Exemplo n.º 2
0
        /// <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));
        }