Table of Contents

Class DisposableObject

Namespace
CMS.Base
Assembly
CMS.Base.dll

Base class for the disposable objects that can carry other depending disposable objects

public class DisposableObject
Inheritance
object
DisposableObject
Derived
Extension Methods

Methods

CallOnDispose(Action)

Adds the given action to the list of actions called when the handler object is disposed

[Obsolete("Method was not intended for public use and will be removed.")]
[ObsoleteSince(29, 3)]
public void CallOnDispose(Action method)

Parameters

method Action

Method to call

Dispose()

Make sure the objects get disposed

public virtual void Dispose()

Using(IDisposable)

Adds the given object to the list of the allocated objects to dispose

[Obsolete("Method was not intended for public use and will be removed.")]
[ObsoleteSince(29, 3)]
public void Using(IDisposable obj)

Parameters

obj IDisposable

Object to register