c# find index of characters in string code example
Example 1: c# find index of character in string
string str = "Now is the time.";
int index = str.IndexOf("h");
Example 2: letter at index of string c#
string s = "hello";
char c = s[1];
// now c == 'e'