Internet AddressCompare To Method
Compares two internet addresses.
Definition
Namespace: MimeKit
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
The sort order of the current internet address compared to the other internet address.
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public int CompareTo(
InternetAddress? other
)Parameters
- other InternetAddress
- The internet address to compare to.
Return Value
Int32The sort order of the current internet address compared to the other internet address.
Implements
IComparableTCompareTo(T)Remarks
Compares display names first. For mailboxes with matching display names, compares IDN-encoded
domains when both addresses have a domain, then local-parts. Comparisons are case-insensitive.
Exceptions
| ArgumentNullException | other is . |