KGy SOFT

EnumerableExtensionsToCircularListT Method

KGy SOFT Core Libraries Help

Namespace:  KGySoft.CoreLibraries
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.0.0
Syntax

public static CircularList<T> ToCircularList<T>(
	this IEnumerable<T> source
)

Parameters

source
Type: System.Collections.GenericIEnumerableT
The IEnumerableT to create a CircularListT from.

Type Parameters

T
The type of the elements of source.

Return Value

Type: 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

Reference