I have a code which looks like this :
Assembly assembly = Assembly.LoadFrom(\"ReflectionTest.dll\"); Type myType = assembly.GetType(@\"ReflectionTest.TestObject\
Try this:
var listType = typeof(List<>); var constructedListType = listType.MakeGenericType(myType); var myList = (IList)Activator.CreateInstance(constructedListType); myList.Add(x);
The list will not be strongly-typed but you can add items as objects.