AsRef(IMethodReturn) Method

Definition

Namespace Stunts
Assembly Stunts.dll

Returns the ReturnValue as a Ref<T>.

[EditorBrowsable(EditorBrowsableState.Advanced)]
public static Ref<T> AsRef<T>(this IMethodReturn return)

Type parameters

T

Parameters

Returns

Remarks

If the ReturnValue is already an instance of Ref<T>, it's returned as-is. Otherwise, the value is wrapped in a new Ref<T>.