PostSharp4.3//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: 4.3.48.0 (4.3.48.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