G
Guest
I have a Collection Class That I am Creating ,
In This Collection Class I have a default Property Item.
My Problem is this I have about twenty different Criterias that can be used
as a value in searching for this item.
So i figured that i could use overloaded item property's, however it
seems that i may not have an overloaded property of the same value type
so what i have done is i made an enum that contains all of the different
criterias and then took in as variables for the property the criteria and the
value as an object
With the exception of the fact that the value variables can be any object
and so is
not explicitly stated, this seems to work fine.
My Question is , does anyone see any problems with this method that i have
mentioned that i have not noticed.
and also Does any one else no of a better way of solving this little dilema?
Thanks Again,
Really you guys are very Helpful In here!!!!
WStoreyII
In This Collection Class I have a default Property Item.
My Problem is this I have about twenty different Criterias that can be used
as a value in searching for this item.
So i figured that i could use overloaded item property's, however it
seems that i may not have an overloaded property of the same value type
so what i have done is i made an enum that contains all of the different
criterias and then took in as variables for the property the criteria and the
value as an object
With the exception of the fact that the value variables can be any object
and so is
not explicitly stated, this seems to work fine.
My Question is , does anyone see any problems with this method that i have
mentioned that i have not noticed.
and also Does any one else no of a better way of solving this little dilema?
Thanks Again,
Really you guys are very Helpful In here!!!!
WStoreyII