D
Dustin Campbell
Is it possible to have a collection of a generic type?
Sure, you can do that by defining the same generic parameter on class b:
class a<t> where t : class, new()
{
}
class b<t> where t : class, new()
{
List<a<t>> p;
}
Best Regards,
Dustin Campbell
Developer Express Inc.
for example:
class a<t> where t : class, new
{
}
class b
{
List<a<t>> p;
}
I know that the previous example does not work, but any ideas on how
to make that concept work?
I need a collection that stores objects that are of a generic type.
Sure, you can do that by defining the same generic parameter on class b:
class a<t> where t : class, new()
{
}
class b<t> where t : class, new()
{
List<a<t>> p;
}
Best Regards,
Dustin Campbell
Developer Express Inc.