Is it possible to rewrite this code in a fancy way to get rid of this ToLower method

  • Thread starter Thread starter Tony Johansson
  • Start date Start date
T

Tony Johansson

Hello!
return animals.Remove(animals.Find(delegate(Animal item) { return
item.Name.ToLower() == animal.Name.ToLower() && item.MyAnimal ==
animal.MyAnimal; }));

//Tony
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top