Skip to content
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

String constructor doesn't actually always return a new string #10691

Open
mjwills-k opened this issue Nov 18, 2024 · 1 comment
Open

String constructor doesn't actually always return a new string #10691

mjwills-k opened this issue Nov 18, 2024 · 1 comment
Labels
area-System.Runtime Pri3 Indicates issues/PRs that are low priority untriaged New issue has not been triaged by the area owner

Comments

@mjwills-k
Copy link

Type of issue

Missing information

Description

https://dotnetfiddle.net/rATujf

https://learn.microsoft.com/en-us/dotnet/api/system.string.-ctor?view=net-8.0#system-string-ctor(system-char()) says "Initializes a new instance". But the above sample shows that isn't always true.

Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.string.-ctor?view=net-8.0

Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System/String.xml

Document Version Independent Id

90baab9e-9ef3-9bb5-d433-8d861d7fa876

Article author

@dotnet-bot

@issues-automation issues-automation bot added the Pri3 Indicates issues/PRs that are low priority label Nov 18, 2024
@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Nov 18, 2024
Copy link
Contributor

Tagging subscribers to this area: @dotnet/area-system-runtime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Runtime Pri3 Indicates issues/PRs that are low priority untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

1 participant