c# - Global Class to access Variables -


we have global instance of class , access across application (in different forms etc)

what different possiblities? (other static class).

it sounds want singleton pattern. depending on application want careful though. 1 instance of it, , can cause unexpected behaviors multiple threads etc. (there other drawbacks too, main point have @ downsides of pattern also).

c# patterns: http://www.dofactory.com/patterns/patterns.aspx


Comments

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -