Click or drag to resize

XEnumerableAppendTSource Method

Note: This API is now obsolete.

Appends the specified element to the specified sequence.

Namespace:  Linq.Extras
Assembly:  Linq.Extras (in Linq.Extras.dll) Version: 5.0.0+96a4f4bfed64095342c5df107c1fe1fb95603ee5
Syntax
[ObsoleteAttribute("This feature is now implemented directly in System.Linq. Please use Enumerable.Append instead")]
public static IEnumerable<TSource> Append<TSource>(
	IEnumerable<TSource> source,
	TSource item
)

Parameters

source
Type: System.Collections.GenericIEnumerableTSource
The sequence to append an element to.
item
Type: TSource
The element to append.

Type Parameters

TSource
The type of the elements of source.

Return Value

Type: IEnumerableTSource
The source sequence followed by the appended element.
Remarks
Linq already has this method in .NET Core, .NET Framework 4.7.1 and higher, and .NET Standard 1.6 and higher, so for these frameworks, the method is not marked as an extension method to avoid name conflicts.
See Also