Nice simple article.
I would like to add the Lambda equivalent for:
foreach(var item in list.ToList())
list.Remove(item); //Will work!
which would be:
list.RemoveAll(listitem => some_condition);
Be polite, helpful and keep a positive attitude
Keep it short
Review spelling and grammar
Code that is untested
Wall of text
About | Articles | Tags | Users | Terms of Service
© Copyright CodeAddiction.net 2016-2019 - All rights reserved