P
Paul Cheetham
OK, I know you can't have globals in C#, and I know that they are abused
in other languages, but sometimes they are the best answer:
I have a Settings Class. I would like to create a single instance of
this settings class so that my other classes can use it to read / write
their settings. This saves time and memory etc over each class creating
its own instance.
In C++ or VB I would have a global instance of the settings class, which
all other classes would be able to see and use.
Can anyone tell me the best way to go about solving my problem in C#?
Thankyou.
in other languages, but sometimes they are the best answer:
I have a Settings Class. I would like to create a single instance of
this settings class so that my other classes can use it to read / write
their settings. This saves time and memory etc over each class creating
its own instance.
In C++ or VB I would have a global instance of the settings class, which
all other classes would be able to see and use.
Can anyone tell me the best way to go about solving my problem in C#?
Thankyou.