Eric,
If all of the objects derive from a common base class, or they implement
the same interface, you can create a List<BaseClass> or List<Interface>
(assuming BaseClass or Interface are the names of your base class or
interface, respecitvely).
Otherwise, you would have to create a List<object> since object is the
root of everything.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Eric" <Er**@discussions.microsoft.com> wrote in message
news:95**********************************@microsof t.com...
I have a string representation of an object. I create an object of that
type
through reflection. I would like to create a List<> of those objects. I
obviously can't do
List<myObject.GetType()>
or
Type t = object.GetType();
List<t>;
Any suggestions.