EnumerableExtensionsToCircularListT Method

Creates a CircularListT from an IEnumerableT.


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


source  IEnumerableT
The IEnumerableT to create a CircularListT from.

Type Parameters

The type of the elements of source.

Return Value

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).


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