public static void Main()
Console.WriteLine("Searching a string inside a string in C#\n");
string baseString = "Searching a string";
string subString = "str";
int iWhere = baseString.IndexOf(subString);
Console.WriteLine("Occurred at : " + iWhere + " position");