Skip to content

Update MailAddress.xml with constructor details#12299

Open
ManickaP wants to merge 1 commit intomainfrom
ManickaP-patch-1
Open

Update MailAddress.xml with constructor details#12299
ManickaP wants to merge 1 commit intomainfrom
ManickaP-patch-1

Conversation

@ManickaP
Copy link
Member

Clarify behavior of MailAddress constructor regarding displayName and encoding.

Fixes dotnet/runtime#57014

Clarify behavior of MailAddress constructor regarding displayName and encoding.

Fixes dotnet/runtime#57014
Copilot AI review requested due to automatic review settings February 10, 2026 08:59
@ManickaP ManickaP requested a review from a team as a code owner February 10, 2026 08:59
@github-actions github-actions bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Feb 10, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the XML documentation for System.Net.Mail.MailAddress(string address, string displayName) to clarify how displayName is handled (validation, quoting, and encoding) when constructing a MailAddress.

Changes:

  • Adds remarks describing displayName validation behavior, quote handling, and encoding behavior for the 2-parameter MailAddress constructor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MailAddress constructor inconsistency

1 participant