Class MailAddressExtensions
- Namespace
- Wolfgang.Extensions.Mail
- Assembly
- Wolfgang.Extensions.Mail.dll
Static extension methods for the MailAddress class, including a
TryParse backfill for target frameworks that lack MailAddress.TryCreate.
public static class MailAddressExtensions
- Inheritance
-
MailAddressExtensions
- Inherited Members
Remarks
On .NET 5.0+, TryParse delegates to the built-in MailAddress.TryCreate.
On .NET Framework 4.6.2 and .NET Standard 2.0, it wraps the constructor in a try/catch.