c# index of charcter in a string code example Example: strinng.indexOf c# int index = String.IndexOf(char x); int index = String.IndexOf(string x);