Wrox Programmer Forums
Visual Studio 2005 For discussing Visual Studio 2005. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Studio 2005 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
Old November 21st, 2005, 11:28 AM
Registered User
Join Date: Nov 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with generic collections

Problem with Generic.Dictionary and Generic.SortedDictionary.
ContainsValue function of both of these classes work with usuall 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. And this implementation works fine for the other function - Sort- that demands.

Please help.

Apologies for posting this query more than once. But i'm just making sure that it gets attention of people in all the relevant forums.

Old November 21st, 2005, 05:30 PM
Registered User
Join Date: Nov 2005
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts

For others reference, my problem got solved at

Similar Threads
Thread Thread Starter Forum Replies Last Post
collections help bennyt BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 July 26th, 2008 01:30 AM
Generic & Dynamic XSLT but small problem..help pulin XSLT 3 April 29th, 2007 05:42 PM
Problem: Developing generic Toolbar in Activex. anup_daware Visual C++ 0 October 4th, 2006 02:50 AM
Problem with generics collections demitry .NET Framework 2.0 4 November 24th, 2005 06:39 AM

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