Skip to content

[dotnet-svcutil] Fix MessageContract member name collision for "System" #5911

Open
imcarolwang wants to merge 1 commit intodotnet:mainfrom
imcarolwang:issue5910
Open

[dotnet-svcutil] Fix MessageContract member name collision for "System" #5911
imcarolwang wants to merge 1 commit intodotnet:mainfrom
imcarolwang:issue5910

Conversation

@imcarolwang
Copy link
Contributor

For #5910:

This PR applies the same naming-fix pattern from the previous related issue #4215 to the MessageContract path. When a MessageContract type member is named System, the generated C# member identifier is now safely renamed, while preserving the original wire name in attributes. A regression test was added to cover this scenario.

Using global:: everywhere could help with broader cases (for type named System), but that would require wider codegen changes and make generated code noisier. For this fix, we kept the scope targeted and consistent with the existing naming-collision approach. A broader global:: strategy can be tracked separately if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant