I am using a stringsplitting mechanism for comma separated strings,and using a foreach loop for looping each item, So if I want to remove an item what can I do?
string lyrsct = drow1["lyricist"].ToString();
var delimiters = new[] {','};
var lyrsct1 = lyrsct.Split(delimiters, StringSplitOptions.RemoveEmptyEntries);
foreach (var item in lyrsct1)
{
if()
{
.........i need to remove from here.....
}
}
I want to remove item inside the if loop.