Click here to Skip to main content
12,079,202 members (27,384 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# ASP.NET C#4.0
Hi,

I need to create a method which will return a list of duplicate values.

Now the method is like,
public static Dictionary<string, List<FileInfo>> GetDuplicateSelectors(Dictionary<FileInfo, List<string>> dictSelectors)
The method is ok with small numbers of input. But for a large set of inputs, the performance will be degraded. So I wanted to use the HashKey<> for searching purpose. So how can I use HashKey in that?

Can anybody please help me doing this?

Thanks
Posted 11-Jun-12 3:20am
Edited 11-Jun-12 3:45am
Mehdi Gholam298.2K
v2
Comments
Zoltán Zörgő 11-Jun-12 8:36am
   
What is the code you have tried, and what problem have you encountered?
SAKryukov 11-Jun-12 13:29pm
   
Search where, in the dictionary by key, or in the list? Dictionary does not degrade performance with volume (that's why we use them), they provide nearly O(1) complexity.
You are probably doing something wrong. Can you make a code sample? If so, use "Improve question" above.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web04 | 2.8.160212.1 | Last Updated 11 Jun 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100