Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

errr- where are the container classes?

Status
Not open for further replies.

Pyramus

Programmer
Dec 19, 2001
237
GB
Coming from a c++ background, there must surely be .NET equivalents of the STL map, list, vector etc. classes. I can't find them anywhere in the .net framework, can anyone help?
 
One thing you'll notice is that the C# collection classes don't have templates (they all hold values of type Object). Templates are coming out in the next release of .NET, and will be named "generics"

Until then, if you want strongly-typed collections, you'll have to derive from ICollectionBase or one of the existing concrete classes.

Chip H.


If you want to get the best response to a question, please check out FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top