String str = "ankit,Ankit,ankit, , ,aNkit,rahul";
here, we have to split above string by ','
var split_values = str.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries).Distinct(StringComparer.CurrentCultureIgnoreCase);
You will get :
ankit
rahul
No comments:
Post a Comment