C
csharpula csharp
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!!
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!!