VB6 Collection Classes in C#
Hi still getting my head round C# ( but it is great) trying to do something I use to use a lot in VB6 that being the Collection Class but have no idea how to achieve this via C# ( it does not even support the collection object unlike VB.Net)
Any help would be appreciated
Re: VB6 Collection Classes in C#
I have looked for several collection classes in C#, but none of them support the following VB Collection.Add method:
VB:
Collection.Add(item, value, before, after)
The 'before' & 'after' parameters are not supported anywhere in C# collection classes like Dictionary, Hashtable, etc.
If anyone has clue on how to support this in C#, please post some code. Much appreciated !
Re: VB6 Collection Classes in C#
You can reference the Microsoft.VisualBasic assembly and then use it directly.
However, this collection is rather eccentric compared to the standard collections in the System.Collections.Generic namespace, which most developers will recognize (List, Dictionary, etc.).