G
Gudni G. Sigurdsson
I am new to C# and use MS Visual C# .NET.
I have defined a class, Config. I create one instance of this class at
the begin of my program and would like this instance to have a global
scope within my program (it contains configuration data to be used in
various other classes). Where should I put the following lines or, what
should I do to make the instance cf of Config globally visible:
Config cf;
cf = new Config();
Sincerely,
Gudni G. Sigurdsson
I have defined a class, Config. I create one instance of this class at
the begin of my program and would like this instance to have a global
scope within my program (it contains configuration data to be used in
various other classes). Where should I put the following lines or, what
should I do to make the instance cf of Config globally visible:
Config cf;
cf = new Config();
Sincerely,
Gudni G. Sigurdsson