This question already has answers here: Casting IEnumerable<T> to List<T> (6 answers) Closed 5 years ago. I want to convert from IEnumerable<Contact> to List<Contact>. How can I do this?...
  • May 14, 2022
  • 0 Comments
I have an IEnumerable<T> method that I’m using to find controls in a WebForms page. The method is recursive and I’m having some problems returning the type I want...
  • May 14, 2022
  • 0 Comments
Given the following code and the suggestions given in this question, I’ve decided to modify this original method and ask if there are any values in the IEnumarable return...
  • May 11, 2022
  • 0 Comments
Is there a common way to pass a single item of type T to a method which expects an IEnumerable<T> parameter? Language is C#, framework version 2.0. Currently I...
  • May 6, 2022
  • 0 Comments