string str = "My name is sudip saha"; string[] strArr = str.Split(' '); foreach (string st in strArr) { if (st == string.Empty) { //it is for double space } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)