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

haskell - Using filter on an item in a list? -

c# - When does PreApplicationStartMethod actually get triggered to run? -

c# - Binding attached property to IEnumerable -