Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[API Proposal]: Implement IParsable<TSelf> et cetera on IPEndPoint #114405

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
carlreinke opened this issue Apr 8, 2025 · 2 comments
Open

[API Proposal]: Implement IParsable<TSelf> et cetera on IPEndPoint #114405

carlreinke opened this issue Apr 8, 2025 · 2 comments
Assignees
Labels
api-suggestion Early API idea and discussion, it is NOT ready for implementation area-System.Net untriaged New issue has not been triaged by the area owner

Comments

@carlreinke
Copy link
Contributor

Background and motivation

IPEndPoint has Parse methods. It should implement IParsable<TSelf> and the other interfaces that usually go with that.

API Proposal

namespace System.Net;

public partial class IPEndPoint : IFormattable,
                                  IParsable<IPEndPoint>,
                                  ISpanFormattable,
                                  ISpanParsable<IPEndPoint>
{
}

API Usage

The type will be usable where generic type constraints require an IParsable<TSelf> or other of the added interfaces.

Alternative Designs

No response

Risks

No response

@carlreinke carlreinke added the api-suggestion Early API idea and discussion, it is NOT ready for implementation label Apr 8, 2025
@dotnet-issue-labeler dotnet-issue-labeler bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Apr 8, 2025
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Apr 8, 2025
@MihaZupan MihaZupan added area-System.Net and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Apr 8, 2025
Copy link
Contributor

Tagging subscribers to this area: @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

@pentp
Copy link
Contributor

pentp commented Apr 11, 2025

Should also include IUtf8SpanFormattable, IUtf8SpanParsable<IPEndPoint> to match IPAddress.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-suggestion Early API idea and discussion, it is NOT ready for implementation area-System.Net untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

3 participants