Skip to content

Incorrect remarks for System.UriBuilder.Scheme property #11626

@dodexahedron

Description

@dodexahedron

Describe the issue or suggestion

Direct link to the XmlDoc

This property does not restrict setting the property to these values as this remarks section claims (which is a good thing) and in fact has not done that for a long time.

Instead, the set accessor validates input according to RFC 2396, when it calls System.Uri.CheckSchemeName, which will allow any valid sequence of characters that is legal as a URI scheme according to the RFC.

This has been true at least since .net 5, with its earlier form of the System.Uri.CheckSchemeName method.

So this remarks section should probably just go away or change to saying that the set accessor validates according to RFC 2396 (though that could also just be in the summary, instead).

Non-permalink forms of the above links, to the tags they came from:

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions