----------------------------------------------------------- New Message on BDOTNET
----------------------------------------------------------- From: prakashjha Message 9 in Discussion Hi bineesh, I dint say tht ur code is violating encapsulation....infact i dint see ur code...before replying to the message....and i think....our codes r pretty much the same...wot i meant was in earlier days of c++,people try to use a public global variable instead of the method/property...and i just happened 2 c ur code now....so u rnot exposing any public members....so u r not violating t encapsulation....but still as u hav said ....i think the concept of hash table proposed by Mrinal....is not required at all during this simple scenario......bcoz u get t same instance by calling the Public method/Property...(in my case.....Instance)....ya..so this concept is useful....wen u use a reflection to discover the type u want to instantate...or if u want to cache this instance of the object....to improve the overall performance....but still i doubt...whether the performance wud be hit drastically by calling tht method/Property...(say MyForm/Instance...)bcoz it is not going to create any new object...and may be it's pretty much straight forward...to call tht Instance method even in terms of performance....so may be mrinal wud be in a much better position to explain t advantage of using a Hashtable...in this scenario...!! Regards, Prakash ----------------------------------------------------------- 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]
