Skip to content

Avoid calling string.Trim(ReadOnlySpan<char>)#15134

Merged
bartonjs merged 1 commit intodotnet:mainfrom
bartonjs:no_string_trim_span
Oct 6, 2024
Merged

Avoid calling string.Trim(ReadOnlySpan<char>)#15134
bartonjs merged 1 commit intodotnet:mainfrom
bartonjs:no_string_trim_span

Conversation

@bartonjs
Copy link
Member

@bartonjs bartonjs commented Oct 4, 2024

The methods are being removed, but the test suite depends on arcade, which is already calling the removed members.

Contributes to dotnet/runtime#108537

The methods are being removed, but the test suite depends on arcade,
which is already calling the removed members.
public class InstallDotNetCore : Microsoft.Build.Utilities.Task
{
#endif
private static readonly char[] s_keyTrimChars = [ '$', '(', ')' ];
Copy link
Member

Choose a reason for hiding this comment

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

From the file below, is the convention in this repo to use _ rather than s_ for statics?

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

@stephentoub stephentoub left a comment

Choose a reason for hiding this comment

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

Thanks!

@bartonjs bartonjs merged commit f0d417e into dotnet:main Oct 6, 2024
@bartonjs bartonjs deleted the no_string_trim_span branch October 6, 2024 01:02
@lewing
Copy link
Member

lewing commented Oct 8, 2024

/backport to release/9.0

@github-actions
Copy link
Contributor

github-actions bot commented Oct 8, 2024

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.

3 participants