how to get the index of an element in a string in c# code example Example: letter at index of string c# string s = "hello"; char c = s[1]; // now c == 'e'