PostSharp5.0//API Reference/Post­Sharp.​Collections Namespace/Linked­List­Extensions Class/Linked­List­Extensions Methods/Linked­List­Extensions.​To­Enumerable Method/Linked­List­Extensions.​To­Enumerable(T) Method (IRead­Only­Linked­List(T))

LinkedListExtensions.ToEnumerable<T> Method (IReadOnlyLinkedList<T>)

Transforms an IReadOnlyLinkedList<T> into an IEnumerable<T>.

Namespace:  PostSharp.Collections
Assembly:  PostSharp (in PostSharp.dll) Version: 5.0.55.0 (5.0.55.0)
Syntax
C#
public static IEnumerable<T> ToEnumerable<T>(
	IReadOnlyLinkedList<T> linkedList
)

Parameters

linkedList
Type: PostSharp.Collections.IReadOnlyLinkedList<T>
A IReadOnlyLinkedList<T>, or null.

Type Parameters

T
Type of values.

Return Value

Type: IEnumerable<T>
An IEnumerable<T> that can enumerate all elements in linkedList. If linkedList is null, an empty enumerable is returned.
See Also