Skip to content

Convert concatenation string to interpolation for System.Private.Xml - #60057

Merged
eiriktsarpalis merged 17 commits into
dotnet:mainfrom
kronic:Convert_concatenation_to_interpolation
Nov 9, 2021
Merged

Convert concatenation string to interpolation for System.Private.Xml#60057
eiriktsarpalis merged 17 commits into
dotnet:mainfrom
kronic:Convert_concatenation_to_interpolation

Conversation

@kronic

Copy link
Copy Markdown
Contributor

No description provided.

@ghostghost added community-contribution Indicates that the PR has been added by a community member area-System.Xml labels Oct 6, 2021
@ghost

ghost commented Oct 6, 2021

Copy link
Copy Markdown

Tagging subscribers to this area: @dotnet/area-system-xml
See info in area-owners.md if you want to be subscribed.

Issue Details

null

Author:kronic
Assignees:-
Labels:

area-System.Xml, community-contribution

Milestone:-

Comment threadsrc/libraries/System.Private.Xml/src/System/Xml/Dom/DocumentXmlWriter.cs Outdated
@kronic
kronic requested a review from krwqOctober 6, 2021 09:14
@eiriktsarpalis

Copy link
Copy Markdown
Member

Hi @kronic, curious why the PR was closed?

@kronickronic reopened this Oct 18, 2021
@kronic

kronic commented Oct 18, 2021

Copy link
Copy Markdown
ContributorAuthor

@eiriktsarpalis Hello, closed by mistake

@eiriktsarpaliseiriktsarpalis left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM although might need another pair of eyes.

@runfoapprunfoappBot mentioned this pull request Oct 20, 2021
@kronic

Copy link
Copy Markdown
ContributorAuthor

ping @eiriktsarpalis@krwq

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return$"d{_top.ToString("d",CultureInfo.InvariantCulture)}p{temp.ToString("d",CultureInfo.InvariantCulture)}";
returnstring.Create(CultureInfo.InvariantCulture,$"d{_top}p{temp}";

@kronickronicNov 8, 2021

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@stephentoub maybe

string.Create(CultureInfo.InvariantCulture,$"d{_top:d}p{temp:d}";

Comment threadsrc/libraries/System.Private.Xml/src/System/Xml/Serialization/Compiler.cs Outdated
Comment threadsrc/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSchemas.cs Outdated
@kronic

Copy link
Copy Markdown
ContributorAuthor

@stephentoub ping

@eiriktsarpalis
eiriktsarpalisforce-pushed the Convert_concatenation_to_interpolation branch from a3a0ec8 to 82feb68CompareNovember 8, 2021 12:56
@eiriktsarpalis

Copy link
Copy Markdown
Member

Thank you @kronic!

Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.Xmlcommunity-contributionIndicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@kronic@eiriktsarpalis@krwq@stephentoub@am11@buyaa-n