1using System.Globalization;
2
3string strParent = "The Codeproject site is very informative.";
4
5string strChild = "codeproject";
6// We create a object of CompareInfo class for a neutral culture or a culture insensitive object
7CompareInfo Compare = CultureInfo.InvariantCulture.CompareInfo;
8
9int i = Compare.IndexOf(strParent,strChild,CompareOptions.IgnoreCase);
10