PostSharp 6.9 / / Post­Sharp Documentation / 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 (Read­Only­Linked­List(T))

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

Transforms a ReadOnlyLinkedList<T> into an IEnumerable<T>.

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

Parameters

linkedList
Type: PostSharp.Collections.ReadOnlyLinkedList<T>
An ReadOnlyLinkedList<T>.

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