Class
DisposableObject

Represents an object that implements the IDisposable interface and automatically releases any events, attached to this instance.

Definition

Namespace:Telerik.Charting

Assembly:Telerik.WinControls.dll

Syntax:

cs-api-definition
public abstract class DisposableObject : IDisposable

Inheritance: objectDisposableObject

Derived Classes: PropertyBagObject

Implements: IDisposable

Constructors

DisposableObject()

Initializes a new instance of the DisposableObject class.

Declaration

cs-api-definition
protected DisposableObject()

Properties

Events

Gets the list of all events, associated with this instance.

Declaration

cs-api-definition
protected EventHandlerList Events { get; }

Property Value

EventHandlerList

IsDisposed

Gets a value indicating whether the object is already disposed.

Declaration

cs-api-definition
[Browsable(false)]
public bool IsDisposed { get; }

Property Value

bool

IsDisposing

Gets a value indicating whether the object is currently in a Dispose cycle.

Declaration

cs-api-definition
[Browsable(false)]
public bool IsDisposing { get; }

Property Value

bool

Methods

Dispose()

Releases all resources, used by this instance.

Declaration

cs-api-definition
public void Dispose()

Implements IDisposable.Dispose()

DisposeManagedResources()

Disposes all managed resources allocated by this instance.

Declaration

cs-api-definition
protected virtual void DisposeManagedResources()

DisposeUnmanagedResources()

Disposes all unmanaged resources allocated by this instance.

Declaration

cs-api-definition
protected virtual void DisposeUnmanagedResources()

Events

Disposed

Raised when the object has finished its Dispose routine.

Declaration

cs-api-definition
public event EventHandler Disposed

Event Value

EventHandler

Disposing

Raised when the object enters its Dispose routine.

Declaration

cs-api-definition
public event EventHandler Disposing

Event Value

EventHandler