FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

M_CSharpx_EnumerableExtensions_Prepend__1 · commandlineparser/commandline Wiki · GitHub

M_CSharpx_EnumerableExtensions_Prepend__1 · commandlineparser/commandline Wiki · GitHub
Skip to content

Navigation Menu

M_CSharpx_EnumerableExtensions_Prepend__1

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

EnumerableExtensions.Prepend(TSource) Method

Prepends a single value to a sequence.

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

Syntax

C#

public static IEnumerable<TSource> Prepend<TSource>(
	this IEnumerable<TSource> source,
	TSource value
)

VB

<ExtensionAttribute>
Public Shared Function Prepend(Of TSource) ( 
	source As IEnumerable(Of TSource),
	value As TSource
) As IEnumerable(Of TSource)

C++

public:
[ExtensionAttribute]
generic<typename TSource>
static IEnumerable<TSource>^ Prepend(
	IEnumerable<TSource>^ source, 
	TSource value
)

F#

[<ExtensionAttribute>]
static member Prepend : 
        source : IEnumerable<'TSource> * 
        value : 'TSource -> IEnumerable<'TSource> 

Parameters

 

source
Type: System.Collections.Generic.IEnumerable(TSource)
value
Type: TSource

Type Parameters

 

TSource

Return Value

Type: IEnumerable(TSource)

Usage Note

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

Wiki pages Pages 1,025

Clone this wiki locally

Footer

© 2026 GitHub, Inc.

Back | FazBrowse Home | New Git URL