Table of Contents

Class DisposableObject

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Provides a mechanism for releasing managed and unmanaged resources.

public class DisposableObject : BaseObject, IBaseObject, IDisposableObject, IDisposable
Inheritance
DisposableObject
Implements
Derived

Constructors

DisposableObject()

Initializes a new instance of the DisposableObject class.

DisposableObject(bool)

Initializes a new instance of the DisposableObject class.

Properties

DisposeHandle

Gets or sets whether to call DisposeUnmanaged() method when this object is disposed.

Disposing

Gets whether object is currently disposing.

IsDisposed

Gets whether object is disposed.

Methods

CheckDisposed()

Throws ObjectDisposedException if IsDisposed is true.

Dispose()
Dispose(bool)

Disposes object's resources.

DisposeManaged()

Override to dispose managed resources. Here we dispose all used object references.

DisposeUnmanaged()

Override to dispose unmanaged resources.

~DisposableObject()

Finalizes an instance of the DisposableObject class.

Events

Disposed

Occurs when control is disposed.