Skip to content

Length parameter description confusing for constructors with sbyte* #11136

Open
@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

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

    Issue actions