Wednesday, January 11, 2017

StringSplitOptions.RemoveEmptyEntries

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


No comments:

Post a Comment

Comments

Protected by Copyscape Plagiarism Software