[Mono-list] Dispose ?

A Rafael D Teixeira rafaelteixeirabr@hotmail.com
Mon, 12 Nov 2001 14:35:50 -0200


Donīt make a public instance variable (terminology is field). Make it a 
public property so that you can handle on the get accessor all the pesky 
situations.

Happy hackings...

Rafael Teixeira
Brazilian Developer



>From: Lloyd Dupont <lloyd@galador.net>
>To: "mono-list@ximian.com" <mono-list@ximian.com>
>Subject: [Mono-list] Dispose ?
>Date: Mon, 12 Nov 2001 00:27:07 +0100
>
>i have an instance variable which is publicly available.
>in Dispose i dispose of it.
>
>i wonder what do you think of this ?
>as it is public other might refer it, so it is hazardous to Dispose it....
>but Dispose should be called on this resource.
>
>i am perplex.
>any advice ?
>
>
>_______________________________________________
>Mono-list maillist  -  Mono-list@ximian.com
>http://lists.ximian.com/mailman/listinfo/mono-list


_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp