Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have no clue where to put the following class and I've noticed I just keep putting them in a helpers folder which isn't much helpfull towards reusability in future projects.

Example: I want to have the ability to use the DisplayNameAttribute together with resource files. In order for this to work I made a LocalizedDisplayNameAttribute which inherits the ´DisplayNameAttribute´ and adds the following properties DisplayNameResourceName and DisplayNameResourceType.

In which namespace/location would you place such a class which is likely to be reused in future projects?

share|improve this question
I think this would be more appropriate if it were asked on – Walter Nov 4 '10 at 12:48
Over there I got the following warning after entering this same title: The question you're asking appears subjective and is likely to be closed. – Peter Nov 4 '10 at 14:20
up vote 2 down vote accepted

I think the best way to do this is putting all helper classes and methods in a separate project, and then reference this project in each solution you create. Much easier than copying folders from place x to place y.

This project with all kinds of extensions, helpers etc, can be called something like "Company.Core", or similar.

Example (your attributes):

using Company.Core.Attributes;

// ....

public string Example { get; set; }
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.