Cleanup vs Dispose(bool) in MVVM-light
Posted
by Budda
on Stack Overflow
See other posts from Stack Overflow
or by Budda
Published on 2010-06-03T03:28:08Z
Indexed on
2010/06/03
3:34 UTC
Read the original article
Hit count: 855
In the lastest version of MVVM-light (V3 SP1) both "Dispose()" and "Dipose(bool)" methods in ViewModel class are marked
Do not use this method anymore, it will be removed in a future version. Use ICleanup.Cleanup() instead
Does this mean that IDisposable interface must not be implemented in all ViewModel classes that are derived from GalaSoft.MvvmLight.ViewModelBase (and cleanup must be overrided)?
If yes, using can't be used for view-model instances... Probably I didn't understand something... Please clarify... What are the benefits of such cleaning up?
Thanks.
© Stack Overflow or respective owner