C#: Convert IEnumerable<Object> to a List<Object>
Posted on 2008-10-08
Can some one help me conert an IEnumerable of objects to a List of the same type. I have a method that returns an IEnumerable of objects to take advantage of the yield return but on the other hand I need to objects to be in a generic typed List. Some idea please?
P.S: I am using .Net Framework 2.0, so please don't bring Linq in here.