C# remove elements in list starting with # [duplicate]
Possible Duplicate:
How to remove el开发者_JS百科ements from an array
I have an List with a bunch of data in it. Some of the lines start with a #
. I want to remove those lines.
How...?
assuming its a string List
myList.RemoveAll(x => x.BeginsWith("#"));
精彩评论