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