Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Use string.Contains(char) instead of Contains(string)#15740

Merged
jkotas merged 1 commit intodotnet:masterfrom
justinvp:string_contains
Jan 5, 2018
Merged

Use string.Contains(char) instead of Contains(string)#15740
jkotas merged 1 commit intodotnet:masterfrom
justinvp:string_contains

Conversation

@justinvp
Copy link

@justinvp justinvp commented Jan 5, 2018

Now that string.Contains(char) exists, use it in corelib.

Now that string.Contains(char) exists, use it in corelib.
Copy link
Member

@jkotas jkotas left a comment

Choose a reason for hiding this comment

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

Thanks

@justinvp
Copy link
Author

justinvp commented Jan 5, 2018

@dotnet-bot test OSX10.12 x64 Checked Innerloop Build and Test please (java.io.IOException: remote file operation failed)

@jkotas
Copy link
Member

jkotas commented Jan 5, 2018

@dotnet-bot test OSX10.12 x64 Checked Innerloop Build and Test please

@jkotas jkotas merged commit a24f196 into dotnet:master Jan 5, 2018
@justinvp justinvp deleted the string_contains branch January 6, 2018 00:08
xtqqczze added a commit to xtqqczze/PowerShell-PowerShell that referenced this pull request Dec 9, 2020
Avoid some small string allocations.

The overload is available since .NET Core 2.1.

See also: dotnet/coreclr#15740
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants