I recently run into trouble when trying to AddRange(IEnumerable) to a List. Probably a classic issue, but I do not really get it yet.
I understand that methods expec
In C# 3.0 you can use the "Cast" extension method. If you import System.Linq and then use this code:
public void AddRange2(IEnumerable foos) where T : Foo { m_Foos.AddRange (foos.Cast()); }
Then it should work for you.