Table of Contents

Method TryCreateRef

Namespace
PaintDotNet.ComponentModel
Assembly
PaintDotNet.ComponentModel.dll

TryCreateRef(IObjectRef, Type)

public static IObjectRef? TryCreateRef(this IObjectRef objectRef, Type interfaceType)

Parameters

objectRef IObjectRef
interfaceType Type

Returns

IObjectRef

TryCreateRef<TInterface>(IObjectRef, out TInterface?)

public static bool? TryCreateRef<TInterface>(this IObjectRef objectRef, out TInterface? newObjectRefT) where TInterface : class, IObjectRef

Parameters

objectRef IObjectRef
newObjectRefT TInterface

Returns

bool?

Type Parameters

TInterface

TryCreateRef<TInterface>(IObjectRef)

public static TInterface? TryCreateRef<TInterface>(this IObjectRef objectRef) where TInterface : class, IObjectRef

Parameters

objectRef IObjectRef

Returns

TInterface

Type Parameters

TInterface