Class NonFinalizeDisposableWithDisposedProp
This is a base class for DisposableWithDisposedProp. It implements the IDisposable interface as suggested in the .NET documentation using the Disposable pattern but it does not implement a finalizer. If you need finalization you need to derive from Disposable or add a finalizer to your derived class and manually call Dispose from the Finalizer.
Implements
Inherited Members
Namespace: Syncfusion.ComponentModel
Assembly: Syncfusion.Shared.Base.dll
Syntax
public class NonFinalizeDisposableWithDisposedProp : IDisposable
Constructors
NonFinalizeDisposableWithDisposedProp()
Declaration
public NonFinalizeDisposableWithDisposedProp()
Fields
m_bDisposed
Storage for IsDisposed property. True - object is disposed, otherwise object is still alive and available for user use.
Declaration
protected bool m_bDisposed
Field Value
Type |
---|
System.Boolean |
Properties
IsDisposed
Allows to detect if object is disposed or not. True indicates object is disposed, otherwise indicates object is still alive and ready for use.
Declaration
protected bool IsDisposed { get; }
Property Value
Type |
---|
System.Boolean |
Methods
Dispose()
Releases all resources used by the Component.
Declaration
public void Dispose()
Dispose(Boolean)
Releases the unmanaged resources used by the Component and optionally releases the managed resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
Remarks
See the documentation for the System.ComponentModel.Component class and its Dispose member.