----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: Mrinal Message 12 in Discussion Hi , Some details about my HashTable related implementation of the singleton pattern , before that , i have agreed that other one is a simpler way to acheive and for any simple scenario i will also go for that , but my one will be useful in rather complex scenarios : Consider this , a Winform application with lots of menus to bring up various forms , now each form has multiple child forms and each form whether main or child has to come up in Non Modal dialog mode -- client requirement . Now after opening a set of forms , person goes back to menu and opens same form , then either of singleton method will do but there's a condition id child form for a given form is open then Parent form instance can't come up , instead of that child instance should come Same problem can also me resolved by opening each form instance on a separate thread . Hope it gives some clue . Meanwhile Shreeman - one doubt , isn't it so that all static methods and variables are always therad safe , so for such implementations we needn't worry about multi threaded scenario and that's what we have used in single ton pattern implemenattion . thanks , Mrinal ----------------------------------------------------------- To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings. http://groups.msn.com/bdotnet/_emailsettings.msnw Need help? If you've forgotten your password, please go to Passport Member Services. http://groups.msn.com/_passportredir.msnw?ppmprop=help For other questions or feedback, go to our Contact Us page. http://groups.msn.com/contact If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list. mailto:[EMAIL PROTECTED]
