ObservableObjectBaseDispose(Boolean) Method
Releases the resources held by this instance.
The base implementation removes the subscribers of the
PropertyChanged event and clears the property storage.
If the overridden method disposes properties accessed by the
Get<T> and
Set methods,
then check the
IsDisposed property first and call the base method as the last step to prevent
ObjectDisposedException.
Namespace: KGySoft.ComponentModelAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
protected virtual void Dispose(
bool disposing
)
Protected Overridable Sub Dispose (
disposing As Boolean
)
protected:
virtual void Dispose(
bool disposing
)
abstract Dispose :
disposing : bool -> unit
override Dispose :
disposing : bool -> unit
Parameters
- disposing Boolean
- if this method is being called due to a call to Dispose; otherwise, .