Skip to content

Conversation

@yasaminashoori
Copy link

Summary

Fixed the code in the CLS compliance documentation where the private field was incorrectly changed to Int16.

The documentation states:

"You don't have to change the type of the private personAge field."

However, the code example in public2.cs showed both the private and public members changed to Int16, which contradicts the documentation.

Fix

Changed private Int16 personAge back to private UInt16 personAge .

Fixes issue: #49691

@yasaminashoori yasaminashoori requested review from a team and BillWagner as code owners December 25, 2025 10:07
@dotnetrepoman dotnetrepoman bot added this to the December 2025 milestone Dec 25, 2025
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates PR is created by someone from the .NET community. label Dec 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution Indicates PR is created by someone from the .NET community.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant