EnumerableExtensionsToCircularListT Method

Creates a CircularListT from an IEnumerableT.

Definition

Namespace: KGySoft.CoreLibraries
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
C#
public static CircularList<T> ToCircularList<T>(
	this IEnumerable<T> source
)

Parameters

source  IEnumerableT
The IEnumerableT to create a CircularListT from.

Type Parameters

T
The type of the elements of source.

Return Value

CircularListT
A CircularListT that contains elements from the input sequence.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableT. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Remarks

The method forces immediate query evaluation and returns a CircularListT that contains the query results. You can append this method to your query in order to obtain a cached copy of the query results.

See Also