NDepend.API Documentation
Append<T>(IEnumerable<T>,T) Method
NDepend.Helpers Namespace > ExtensionMethodsEnumerable Class > Append Method : Append<T>(IEnumerable<T>,T) Method
The element type.
A sequence of elements.
The element to append.
Append element at the end of seq.
Syntax
[IteratorStateMachine(NDepend.Helpers.ExtensionMethodsEnumerable/d__9`1)] 
public static IEnumerable<T> Append<T>( 
   IEnumerable<T> seq, 
   T element 
)

Parameters

seq
A sequence of elements.
element
The element to append.

Type Parameters

T
The element type.
Remarks
This extension method has a constant time complexity.
Before v2021.2 this method used to be an extension method but with v2021.2 NDepend compiles to net472.
Thus this method collided with the Enumerable.Append() introduced within net471.
Some default rules used this method in a non-extension way so we made it as a non-extension method.
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

ExtensionMethodsEnumerable Class
ExtensionMethodsEnumerable Members
Overload List