how to find index of charachter c# code example Example: c# find index of character in string string str = "Now is the time."; int index = str.IndexOf("h");