Table of Contents

Method Yield

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

Yield<T>(T)

Wraps this object instance into an IEnumerable<T> consisting of a single item.

public static IEnumerable<T> Yield<T>(this T item)

Parameters

item T

The instance that will be wrapped.

Returns

IEnumerable<T>

An IEnumerable<T> consisting of a single item.

Type Parameters

T

Type of the object.