Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    NullDisposable Class

    Namespace: Stride.Core
    Assembly: Stride.Core.dll

    This class is an implementation of the System.IDisposable interface that does nothing when disposed.

    System.Object → NullDisposable
    Derived from NullDisposable:

    public class NullDisposable : IDisposable
    Name Description
    Fields
    Instance

    A static instance of the NullDisposable class.

    Methods
    Dispose()

    Implementation of the System.IDisposable.Dispose() method. This method does nothing.

    | Improve this Doc View Source

    Fields


    Instance

    A static instance of the NullDisposable class.

    public static readonly NullDisposable Instance
    Field Value
    Type Description
    NullDisposable
    | Improve this Doc View Source

    Methods


    Dispose()

    Implementation of the System.IDisposable.Dispose() method. This method does nothing.

    public void Dispose()

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation