C index of char in string
The IndexOf method in C# is used to search a program for a string or a part of a string (substring). The method reports the zero-based index of the first occurrence of the Unicode character you specify in the string. It can also report the zero-based index of an entire substring. The Index Value of character 'F' is 5 The Index Value of character 'C' is -1 String.IndexOf(char x, int start1) method This method returns the zero-based index of the first occurrence of the specified character within the string.