IRef<T>.

CloneAs<TResult>() Method

Summary

Create another reference to the same object, but cast the object to a different type.
Namespace
Avalonia.Utilities
Containing Type
IRef<T>

Syntax

IRef<TResult> CloneAs<TResult>() where TResult : class

Type Parameters

Name Description
TResult The type of the new reference.

Return Value

Type Description
IRef<TResult> A reference to the value as the new type but sharing the refcount.