Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Generics
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old November 21st, 2005, 11: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.

  #2 (permalink)  
Old November 21st, 2005, 05: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



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 05: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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.