New to Telerik UI for WinFormsStart a free 30-day trial

Represents a basic object which implements IDisposable interface.

Definition

Namespace:Telerik.WinControls

Assembly:Telerik.WinControls.dll

Syntax:

C#
[CLSCompliant(true)]
public class DisposableObject : IDisposable

Inheritance: objectDisposableObject

Derived Classes: PathRadBrushRadEffectResourceDictionaryRoundedRectangleRadObjectGanttCellSelfReferenceLayoutGridViewSynchronizationServiceRadPageViewObjectRadPageViewSubPageCollectionRadReminderBindableObjectRadTabbedFormControlObjectSelfReferenceCellLayout...

Implements: IDisposable

Constructors

C#
public DisposableObject()

Properties

Gets the RadBitVector64 structure that holds all the bit states of the object.

C#
[CLSCompliant(false)]
protected RadBitVector64 BitState { get; }

Provides a simple list of delegates.

C#
protected EventHandlerList Events { get; }

Determines whether the object is already disposed.

C#
[Browsable(false)]
public bool IsDisposed { get; }

Determines whether the object is in a process of being disposed of.

C#
[Browsable(false)]
public bool IsDisposing { get; }

Methods

Releases all resources associated with this object.

C#
public void Dispose()

Implements: IDisposable.Dispose()

Performs the actual Dispose logic.

C#
protected void Dispose(bool disposing)
Parameters:disposingbool

Disposes all MANAGED resources - such as Bitmaps, GDI+ objects, etc.

C#
protected virtual void DisposeManagedResources()

Releases any UNMANAGED resources used by this object. NOTE: If you declare some unmanaged resources in your class, you should override its finalizer and put disposing logic there also.

C#
protected virtual void DisposeUnmanagedResources()

Gets the current bit state for the object, defined by the provided key.

C#
protected bool GetBitState(long key)
Parameters:keylongReturns:

bool

Notifies the object for a change in its bit state.

C#
protected virtual void OnBitStateChanged(long key, bool oldValue, bool newValue)
Parameters:keylongoldValueboolnewValuebool

Performs the core resources release logic.

C#
protected virtual void PerformDispose(bool disposing)
Parameters:disposingbool

Applies the specified boolean value to the BitVector of the object.

C#
protected virtual void SetBitState(long key, bool value)
Parameters:keylongvaluebool

Events

C#
[Browsable(false)]
public event EventHandler Disposed
C#
[Browsable(false)]
public event EventHandler Disposing