MailboxAddressEquals(InternetAddress) Method

Determine whether the specified MailboxAddress is equal to the current MailboxAddress.

Definition

Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public override bool Equals(
	InternetAddress? other
)

Parameters

other  InternetAddress
The MailboxAddress to compare with the current MailboxAddress.

Return Value

Boolean
if the specified MailboxAddress is equal to the current MailboxAddress; otherwise, .

Implements

IEquatableTEquals(T)

Remarks

Compares two mailbox addresses to determine if they are identical or not.

The addresses are compared exactly as they were parsed or set, so an address with an IDN-encoded domain (e.g. user@xn--bcher-kva.example) is not equal to the same address with an internationalized domain (e.g. user@bücher.example). To compare the domains regardless of their form, compare the results of GetAddress(Boolean) instead.

See Also