Examplestring strrfind = "My nick name is jk";int intchar = strrfind.IndexOf("n");MessageBox.Show(intchar.ToString());
Examplestring strrfind = "My nick name is jk";char[] test ={ 'n'};int intchar = strrfind.IndexOfAny(test,5);MessageBox.Show(intchar.ToString());
Examplestring strreplace = " My changed nick name is jk";MessageBox.Show(strreplace.Replace("jk","JEY"));
Examplestring strsplit = " Here is a message for the Dot net developers. I am splited into two text now.I am the next text";//Split sharchar [] csplitchar={'.'};string [] strsplitcvalues;//Splited values in a arraystrsplitcvalues = strsplit.Split(csplitchar);//To display the arrayforeach(string s in strsplitcvalues ){MessageBox.Show ("The spliter string is " + s);}