Returns an IndexedEnumerable from any collection implementing IEnumerable<T>

Namespace: CodeSmith.Engine
Assembly: CodeSmith.Engine (in CodeSmith.Engine.dll) Version: 6.0.0.0 (7.0.0.15127)

Syntax

C#
public static IndexedEnumerable<T> AsIndexedEnumerable<T>(
	this IEnumerable<T> source
)
Visual Basic
<ExtensionAttribute> 
Public Shared Function AsIndexedEnumerable(Of T) ( 
	source As IEnumerable(Of T)
) As IndexedEnumerable(Of T)

Parameters

source
Type: System.Collections.Generic..::..IEnumerable<(Of <(<'T>)>)>
Source enumerable

Type Parameters

T
Type of enumerable

Return Value

Type: IndexedEnumerable<(Of <(<'T>)>)>
A new IndexedEnumerable<T>.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable<(Of <(<'T>)>)>. 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).

See Also