get value of all index of a char in string c# 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'