I create a List< Line> alpha and a List<List< Line>> beta.
Add to alpha a bunch of lines.
beta.AddRange(alpha);
Error:
Error (CS1502): The best overloaded method match for ‘System.Collections.Generic.List<System.Collections.Generic.List<Rhino.Geometry.Line>>.AddRange(System.Collections.Generic.IEnumerable<System.Collections.Generic.List<Rhino.Geometry.Line>>)’ has some invalid arguments
Error (CS1503): Argument 1: cannot convert from ‘System.Collections.Generic.List<Rhino.Geometry.Line>’ to ‘System.Collections.Generic.IEnumerable<System.Collections.Generic.List<Rhino.Geometry.Line>>’
What’s the problem? How is one of the category System.Collections.Generic.IEnumerable & the other System.Collections.Generic.List?