WinForms

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class NonFinalizeDisposableWithDisposedProp

    Show / Hide Table of Contents

    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.

    Inheritance
    System.Object
    NonFinalizeDisposableWithDisposedProp
    DisposableWithDisposedProp
    Implements
    System.IDisposable
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    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 Description
    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 Description
    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.

    Implements

    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved