Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > Generics
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Generics Discussion of the .NET Generics feature common to all Microsoft .NET 2.0 and later languages. Questions specific to an individual language should go in the language forums instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Generics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old November 21st, 2005, 10:23 AM
Registered User
 
Join Date: Nov 2005
Location: , , Russia.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default ContainsValue doesnt work

Problem with Generic.Dictionary and Generic.SortedDictionary.
ContainsValue function of both of these classes works with usual datatypes. But when you make a collection of the objects of a class that you have defined yourself it doesnt work.

I know that it requires you to implement IComparable which i have done already. And this implementation works fine for the other function - Sort- that demands it.

Please help.

Reply With Quote
  #2 (permalink)  
Old November 21st, 2005, 04:29 PM
Registered User
 
Join Date: Nov 2005
Location: , , Russia.
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

For others reference, my problem got solved at
http://p2p.wrox.com/topic.asp?TOPIC_ID=36752

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
c:out doesnt work tllcll JSP Basics 1 November 1st, 2007 03:15 AM
xsl:key doesnt work cristtiah XSLT 11 May 24th, 2006 09:57 AM
Button doesnt work help john111 Java GUI 4 March 21st, 2006 04:22 PM
WHY DOESNT THIS WORK vb certified Pro VB.NET 2002/2003 5 August 1st, 2005 11:08 PM
Delete Topic doesnt work mehdi62b Forum and Wrox.com Feedback 4 October 4th, 2004 02:02 PM



All times are GMT -4. The time now is 12:17 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.