Table of Contents

Interface IObjectRef

Namespace
PaintDotNet.ComponentModel
Assembly
PaintDotNet.ComponentModel.dll

A reference to an object instance. This is similar to IUnknown in COM. Each "reference" to an object implementing IObjectRef is reified as its own managed object.

public interface IObjectRef : IIsDisposed, IDisposable
Inherited Members
Extension Methods

Methods

TryCreateRef(Type, out IObjectRef?)

Checks to see if the given interface is supported by this object, and if so creates that wrapper and provides it to you. This adds 1 to the reference count of the underlying object. To decrement the reference count, dispose the wrapper provided by this method or permit it to be garbage collected. When the reference count reaches 0, the object will be disposed.