CollectionUtilities..::..Concat<(Of <(<'TSource>)>)> Method

Concatenates an item onto the emd of an enumeration.

Namespace:  Tortuga.Anchor
Assembly:  Tortuga.Anchor (in Tortuga.Anchor.dll)

Syntax


public static IEnumerable<TSource> Concat<TSource>(
	IEnumerable<TSource> list,
	TSource item
)
Public Shared Function Concat(Of TSource) ( _
	list As IEnumerable(Of TSource), _
	item As TSource _
) As IEnumerable(Of TSource)

Type Parameters

TSource
The type of enumerable

Parameters

list
Type: IEnumerable<(Of <(<'TSource>)>)>
The source to be enumerated.
item
Type: TSource
The item to be appended to the enumeration.

Return Value

An System.Collections.Generic.IEnumerable<T> that contains the concatenated elements of the two input sequences.