c# Create generic list dynamically at runtime
问题 Following the example on this post, I found out how to create a list of generic types dynamically. Now, my issue is that I want to ADD items to the created list from an unknown source list - is there some way to achieve this? EDIT I start with a source list containing business objects, but I absolutely need the right type of my output list, because of downstream bindings that require it. My non-compiling code is as follows: IList<object> sourceList; // some list containing custom objects Type