Can I inherit from Collections.Generics.List in VB.NET 2.0?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

If so, how is this done? I can't seem to get the generic parameter syntax.
 
Hello Rj,

List<T> is not inteded for inheritance, as it is optimized for speed (and
thus has not virtual methods).

Use the System.Collections.ObjectModel.Collection<T> instead.

Best regards,
Henning Krause
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top