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
Post a Comment