Skip to content

Length parameter description confusing for constructors with sbyte* #11136

@rindlespot

Description

@rindlespot

Type of issue

Typo

Description

There are two constructors on this page which take an sbyte* input parameter. For each, the length parameter is described as:

The number of characters within value to use.

Unlike the other constructors on this page, using the term 'characters' for these two is misleading. The number of characters within an sbyte* is variable, depending on how the decoding works out. Fortunately, what this parameter really wants is a count of the number of sbytes, not the (more difficult to calculate) number of characters.

Proposed replacement text:

The number of sbytes within value to use.

Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.string.-ctor?view=net-9.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

Platform Id

ac6a36d8-9684-17ab-5b56-e2696ccb8adf

Article author

@dotnet-bot

Activity

added
needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners
on Mar 28, 2025
added and removed
needs-area-labelAn area label is needed to ensure this gets routed to the appropriate area owners
on Mar 28, 2025
dotnet-policy-service

dotnet-policy-service commented on Mar 28, 2025

@dotnet-policy-service
Contributor

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

added
help wantedGood for community contributors to help [up-for-grabs]
on Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.Runtimehelp wantedGood for community contributors to help [up-for-grabs]untriagedNew issue has not been triaged by the area owner

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @rindlespot@jozkee

        Issue actions

          Length parameter description confusing for constructors with sbyte* · Issue #11136 · dotnet/dotnet-api-docs