how to get the index of a character in a string in c# code example
Example 1: get string character by index c#
//Returns a char
myString.[0];
//Returns a string
myString.[0].ToString();
Example 2: c# find index of character in string
string str = "Now is the time.";
int index = str.IndexOf("h");