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.
 
Back
Top