Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add String.Contains(String, StringComparison) overload #4751

Closed
Atomosk opened this issue Dec 6, 2015 · 1 comment
Closed

Add String.Contains(String, StringComparison) overload #4751

Atomosk opened this issue Dec 6, 2015 · 1 comment

Comments

@Atomosk
Copy link

Atomosk commented Dec 6, 2015

Currently you have to use IndexOf:

"ABA".IndexOf("ab", StringComparison.InvariantCultureIgnoreCase) >= 0

With new api it will be

"ABA".Contains("ab", StringComparison.InvariantCultureIgnoreCase)
@mikedn
Copy link
Contributor

mikedn commented Dec 6, 2015

Looks like a duplicate of dotnet/corefx#1565

@Atomosk Atomosk closed this as completed Dec 6, 2015
@msftgits msftgits transferred this issue from dotnet/coreclr Jan 30, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Jan 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants