I have a component that have some default values. These values are used when some classes are instantiated, so the properties will be, by start, filled with the default value.
If you will ask why i'm doing these is because, these values, will be the same in the entire application. So there is no need to always repeat the same value, every time an instance is created.
So I'm thinking in 3 ways this can be done:
- 1st like a custom .config class as in this topic.
- 2nd using .config appSettings by adding add tags.
- 3rd using some static or singleton class that have the properties of each value.
My question is, how these strategies is the best or there is other that i miss?