views:

90

answers:

4

I have a class called PriceStep. I keep a list of PriceStep objects in a class called PriceStepSearchSpace. Now I am required to have different PriceStepSearchSpace objects for different products and I need to keep them in some sort of a dictionary. I called this new class PriceStepSearchSpaceRepository.

Can you think of a simpler/shorter name?

+5  A: 

You could call it Repository and put it in a namespace called PriceSteps.Searchspaces.

Timwi
+3  A: 

I might call it PriceStepSearchSpaces if it was unlikely that I would have any other type of collection of those objects. Otherwise, I like Timwi's idea of putting related classes into a namespace to prevent duplication of prefixes.

Kristopher Johnson
+1  A: 

I would go with SearchSpace for your first and SearchSpaceDictionary for the second.

There's no need to preface a parent class with it's child class name!

However, you may want to re-think your object model, it's hard to give advice about that based on the info you provided.

JohnB
A: 

PriceStep. PriceSteps. PriceStepsByProduct.

Steven Sudit