S
serge calderara
Dear all,
What is the best way to handle global variable in .NET?
We have for instance a configuration file with certain
application parameters.
Lets say that sDataBasePath will contain the path of a
database file set in that configuration file.
Then how to declare that variable in order that it it
global to :
1- the whole assembly
2- the whole aaplication that is based on different
assembly
In VB5 for instance that variable would be declare in
a .BAS module as Global sDataBasePath as string
thanks for your answer
Regards
What is the best way to handle global variable in .NET?
We have for instance a configuration file with certain
application parameters.
Lets say that sDataBasePath will contain the path of a
database file set in that configuration file.
Then how to declare that variable in order that it it
global to :
1- the whole assembly
2- the whole aaplication that is based on different
assembly
In VB5 for instance that variable would be declare in
a .BAS module as Global sDataBasePath as string
thanks for your answer
Regards