Table of Contents

Interface IObjectRef

Namespace
PaintDotNet.ComponentModel
Assembly
PaintDotNet.ComponentModel.dll

An individually tracked reference to an underlying object instance. This is similar to IUnknown in COM.

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.