Skip to content

M_CSharpx_EnumerableExtensions_Concat__1_1

Moh.Hassan edited this page Oct 10, 2019 · 1 revision

EnumerableExtensions.Concat(T) Method (T, IEnumerable(T))

Returns a sequence consisting of the head element and the given tail elements.

Namespace: CSharpx
Assembly: CommandLine (in CommandLine.dll) Version: 0.0.0

Syntax

C#

public static IEnumerable<T> Concat<T>(
	this T head,
	IEnumerable<T> tail
)

VB

<ExtensionAttribute>
Public Shared Function Concat(Of T) ( 
	head As T,
	tail As IEnumerable(Of T)
) As IEnumerable(Of T)

C++

public:
[ExtensionAttribute]
generic<typename T>
static IEnumerable<T>^ Concat(
	T head, 
	IEnumerable<T>^ tail
)

F#

[<ExtensionAttribute>]
static member Concat : 
        head : 'T * 
        tail : IEnumerable<'T> -> IEnumerable<'T> 

Parameters

 

head
Type: T
tail
Type: System.Collections.Generic.IEnumerable(T)

Type Parameters

 

T

Return Value

Type: IEnumerable(T)

Usage Note

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

Reference

EnumerableExtensions Class
Concat Overload
CSharpx Namespace

Clone this wiki locally