Table of Contents

Class Util.BaseContext

Namespace
Ranorex.Core
Assembly
Ranorex.Core.dll

A base implementation of the IDisposable interface.

public abstract class Util.BaseContext : IDisposable
Inheritance
Util.BaseContext
Implements
Derived
Inherited Members

Constructors

BaseContext()

protected BaseContext()

Methods

Dispose()

Calls the OnClose() method for this instance.

public void Dispose()

Remarks

OnClose() is only called once even if this method is called several times.

Dispose(bool)

Releases unmanaged and - optionally - managed resources.

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

true to release both managed and unmanaged resources; false to release only unmanaged resources.

~BaseContext()

On garbage collection calls Dispose() if it has not already been called.

protected ~BaseContext()

OnClose()

Called when the context is closed, i.e. is disposed or goes out of scope.

protected abstract void OnClose()