473,379 Members | 1,201 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Idictionary?

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!!!
Nov 20 '05 #1
1 2184
John wrote:
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.

--
Sven Groot

http://unforgiven.bloghorn.com

Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: greg | last post by:
Hi I use a COM object to interface with domain search from SRS and it returns: SRSPLUSLib.SrsClass srs = new SRSPLUSLib.SrsClass(); srs.Startup(); SRSPLUSLib.IDictionary dic =...
2
by: tonci.tomic | last post by:
I have IDictionary with integers as keys and values. Suppose I want to set value for key=42 to 1 if entry doesn't exist in container. Otherwise, I want to increment value. I ended with: ...
4
by: Sanjay Vyas | last post by:
Sorry, forgot to cross post this one.. This is rather unusual as we would expect any Collection class to implement ICollection interface and furthermore a Dictionary class should implement...
4
by: John C | last post by:
I'm new to C#, so just point me at the correct reference material if this question has been answered before. When creating a new class which implements the IDictionary interface, two versions of...
3
by: Marek | last post by:
Hi I have a class which has a property which implements IDictionary which I would like to display in a propertygrid control. If I add the property expands, but I only get Count, IsReadOnly,...
10
by: J055 | last post by:
Hi I have an OrderedDictionary object where the key is an enum. Is there an easy way to cast it to an integer? Examples/document appreciated. Thanks Andrew
7
by: vcquestions | last post by:
trying to design an effiecient interface, where I can pass an IDictionary<int,string^to a method. int is some id and string^ is some value that is initialized to null by a caller. The callee...
1
by: =?Utf-8?B?U3VzaGlTZWFu?= | last post by:
I have repeater and IDictionary. In dictionary I add values like name and age. IDictionary TestDictionary = new Hashtable(); SiteImages.Add(23, "John Smith"); SiteImages.Add(14, "Some Some1"); ...
3
by: coconet | last post by:
I have a string like this mystring = "color1:blue;color2:red"; I am tring to convert this into an IDictionary populated like this: color1 blue color2 red My non-working syntax is
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.