D
deko
I have WinForms app that uses a lot of constants. The same constants are
often required by different classes - on the different forms, on subclassed
controls, etc.
How do I avoid repeating the declaration of these constants in each class?
Should I put them all in an enumeration? Then I would have to cast every
time I wanted to use them?
often required by different classes - on the different forms, on subclassed
controls, etc.
How do I avoid repeating the declaration of these constants in each class?
Should I put them all in an enumeration? Then I would have to cast every
time I wanted to use them?