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

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -