J
Jon
I'm trying to decide where to put some globally accessible declarations for
my project. Say you have several enums, one for message types, one for email
formats, one for import method, etc...things your various programs do. You
obviously will have need to use these enums in the actual class that does
these things, but you from time-to-time need to use them somewhere else.
In that cricumstance, would you create a single Declarations module and put
all your enums and global vars in there or would you put them in their
separate class files as public members?
I kind of like having everything come up in intellisense under a
namespace.declaration.whatever, but realize it may make more structural
sense to put them in the class where they are actually related to the class
function.
Opinions?
Thanks
Jon
my project. Say you have several enums, one for message types, one for email
formats, one for import method, etc...things your various programs do. You
obviously will have need to use these enums in the actual class that does
these things, but you from time-to-time need to use them somewhere else.
In that cricumstance, would you create a single Declarations module and put
all your enums and global vars in there or would you put them in their
separate class files as public members?
I kind of like having everything come up in intellisense under a
namespace.declaration.whatever, but realize it may make more structural
sense to put them in the class where they are actually related to the class
function.
Opinions?
Thanks
Jon