best way to make strong typed collection

  • Thread starter Thread starter Smokey Grindel
  • Start date Start date
S

Smokey Grindel

I am rewriting some code someone else wrote and of course VS2008 is coming
back in code analysis saying that you should use Collection<t> instead of
collection base now... well whats the best way to go about doing this?
should it inherit from a generic collection of the type or implement a
collection of the interface (since .NET makes both available to you not sure
which to use) thanks!
 
well whats the best way to go about doing this?
should it inherit from a generic collection of the type or implement a
collection of the interface (since .NET makes both available to you
not sure which to use) thanks!

Probably best to inherit - that way you get the base functionality without
writing it from scatch.
 

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