By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,424 Members | 1,375 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,424 IT Pros & Developers. It's quick & easy.

design mapping question

P: n/a
Hello,

I would like to know what is the best solution for the following
situation :

I have a class which contains these boolean members:

HasSort1Property
HasSort2Property
HasSort3Property
......
....
etc..

In some other place I am calling a function with (SortType Sort2) for
example so I need some kind of mapping between the HasSort1Property
boolean and the Sort1. How can I do it?
I thought about an enum but it seems like complex solution and I am not
sure how. Can someone please help?

Thanks a lot!!

*** Sent via Developersdex http://www.developersdex.com ***
Jul 13 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.