RefCountable.

Create<T>(T) Method

Summary

Create a reference counted object wrapping the given item.
Namespace
Avalonia.Utilities
Containing Type
RefCountable

Syntax

public static IRef<T> Create<T>(T item) where T : class, IDisposable

Type Parameters

Name Description
T The type of item.

Parameters

Name Type Description
item T The item to refcount.

Return Value

Type Description
IRef<T> The refcounted reference to the item.