Idictionary?

  • Thread starter Thread starter John
  • Start date Start date
J

John

I have a collection of properties from a WMI query and I
want to recreate the collection and exclude duplicates and
then enumerate.

In VBScript I used the "Scripting.Dictionary" object and
the "exists" method to weed out the Dups. Should I use the
Idictionary in VB.NET or is there a more efficaint way?
Don't see many IDictionary examples out there.

Any help would be great. Thanks!!!
 
John said:
I have a collection of properties from a WMI query and I
want to recreate the collection and exclude duplicates and
then enumerate.

In VBScript I used the "Scripting.Dictionary" object and
the "exists" method to weed out the Dups. Should I use the
Idictionary in VB.NET or is there a more efficaint way?
Don't see many IDictionary examples out there.

IDictionary is only an interface, so by itself it doesn't do much good. You
need class that implements IDictionary. Depending on the type of information
you'll be using as key, you should probably look at
System.Collections.Hashtable or System.Collections.SortedList.
 
Back
Top