| Different ways to find Index of any string character in csharp?
Below are the different ways to find the Index of any string or character in C#:-
String.IndexOf(char x)
String.IndexOf(char x, int start1)
String.IndexOf(char x, int start1, int start2)
String.IndexOf(string s1)
String.IndexOf(string s1, int start1)
String.IndexOf(string s1, int start1, int start2)
String.IndexOf(string s1, int start1, int start2, StringComparison cType)
String.IndexOf(string s1, int start1, StringComparison cType)
String.IndexOf(string s1, StringComparison cType) | | |