Class DisposableObject
Represents a basic object which implements IDisposable interface.
Inheritance
Inherited Members
Namespace: Telerik.WinControls
Assembly: Telerik.WinControls.dll
Syntax
[CLSCompliant(true)]
public class DisposableObject : IDisposable
Constructors
DisposableObject()
Declaration
public DisposableObject()
Properties
BitState
Gets the RadBitVector64 structure that holds all the bit states of the object.
Declaration
[CLSCompliant(false)]
protected RadBitVector64 BitState { get; }
Property Value
RadBitVector64
|
Events
Provides a simple list of delegates.
Declaration
protected EventHandlerList Events { get; }
Property Value
System.ComponentModel.EventHandlerList
|
IsDisposed
Determines whether the object is already disposed.
Declaration
public bool IsDisposed { get; }
Property Value
System.Boolean
|
IsDisposing
Determines whether the object is in a process of being disposed of.
Declaration
public bool IsDisposing { get; }
Property Value
System.Boolean
|
Methods
Dispose()
Releases all resources associated with this object.
Declaration
public void Dispose()
Implements
Dispose(Boolean)
Performs the actual Dispose logic.
Declaration
protected void Dispose(bool disposing)
Parameters
System.Boolean
disposing
|
DisposeManagedResources()
Disposes all MANAGED resources - such as Bitmaps, GDI+ objects, etc.
Declaration
protected virtual void DisposeManagedResources()
DisposeUnmanagedResources()
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.
Declaration
protected virtual void DisposeUnmanagedResources()
GetBitState(Int64)
Gets the current bit state for the object, defined by the provided key.
Declaration
protected bool GetBitState(long key)
Parameters
System.Int64
key
|
Returns
System.Boolean
|
OnBitStateChanged(Int64, Boolean, Boolean)
Notifies the object for a change in its bit state.
Declaration
protected virtual void OnBitStateChanged(long key, bool oldValue, bool newValue)
Parameters
System.Int64
key
|
System.Boolean
oldValue
|
System.Boolean
newValue
|
PerformDispose(Boolean)
Performs the core resources release logic.
Declaration
protected virtual void PerformDispose(bool disposing)
Parameters
System.Boolean
disposing
|
SetBitState(Int64, Boolean)
Applies the specified boolean value to the BitVector of the object.
Declaration
protected virtual void SetBitState(long key, bool value)
Parameters
System.Int64
key
|
System.Boolean
value
|
Events
Disposed
Declaration
public event EventHandler Disposed
Event Type
System.EventHandler
|
Disposing
Declaration
public event EventHandler Disposing
Event Type
System.EventHandler
|