string somestring = "One,,Two,,,Three,,,Four,,";
somestring.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries)
StringSplitOptions.RemoveEmptyEntries- Can remove empty strings after comma seperated from the above code
somestring.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries)
StringSplitOptions.RemoveEmptyEntries- Can remove empty strings after comma seperated from the above code
No comments:
Post a Comment
Comments