Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.

string.IndexOf(String value, StringComparison comparisonType) not available #1045

Open
tosandeepgarg opened this issue May 26, 2017 · 2 comments
Labels

Comments

@tosandeepgarg
Copy link

IndexOf function with StringComparison pararameter is not available.
Here is test case:

using System;

public static class Program
{
    public static void Main(string[] args)
    {
        var s = "abcdefabcdef";
        Console.WriteLine(s.IndexOf("ABC", StringComparison.OrdinalIgnoreCase));
    }
}
@tosandeepgarg
Copy link
Author

Similarly EndsWith is not having overload with StringComparison.

@kg kg added the Bug label Jun 3, 2017
@Kyoril
Copy link

Kyoril commented Nov 28, 2017

StringComparison.OrdinalIgnoreCase isn't available as well, not just the IndexOf method overload.

Just to have it mentioned, or should I create a separate issue for this one?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants