Thanks Richard certainly cleared that issue up I now know I don't need it in
my example context and do now know when I would require a dispose event.
Thanks again.
SpotNet.
"Richard Blewett [DevelopMentor]" <ri******@develop.com> wrote in message
news:u9**************@TK2MSFTNGP11.phx.gbl...
: In this case I don't see anything useful that can be done there, but in
general think about this type of scenario:
:
: An IDisposable class manages another IDisposable class and will hand out a
reference to it in some situations on the understanding that this it is the
only one that will call Dispose on the object its managing. So code that has
received this contained object subscribes to the Disposed event so they will
know not to use that object anymore when the event gets raised.
:
: Regards
:
: Richard Blewett - DevelopMentor
:
http://staff.develop.com/richardb/weblog
:
:
nntp://news.microsoft.com/microsoft.public.dotnet.languages.csharp/<u$**************@tk2msftngp13.phx.gbl>
:
:
: Hi NewsGroup,
:
: Just got a hold of disposing and finalisers (destructors) on how to
: effictively use them and understand what's going on with them, with great
: thanks to this new group (thanks all). I would like to ask in when should
: the disposed event be utilised for components\classes that offer them? Any
: context for example;
:
: