CollectionExtensions.Concat Method (IEnumerable, IEnumerator)
Concatenates a single item to an IEnumerable collection. This element is introduced in Windows PowerShell 5.0.
Namespace: Microsoft.OneGet.Utility.Extensions
Assembly: Microsoft.OneGet.Utility (in Microsoft.OneGet.Utility.dll)
Usage
'Usage
Dim set1 As IEnumerable(Of T)
Dim set2 As IEnumerator(Of T)
Dim returnValue As IEnumerable(Of T)
returnValue = CollectionExtensions.Concat(set1, set2)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function Concat(Of T) ( _
set1 As IEnumerable(Of T), _
set2 As IEnumerator(Of T) _
) As IEnumerable(Of T)
[ExtensionAttribute]
public static IEnumerable<T> Concat<T> (
IEnumerable<T> set1,
IEnumerator<T> set2
)
[ExtensionAttribute]
public:
generic<typename T>
static IEnumerable<T>^ Concat (
IEnumerable<T>^ set1,
IEnumerator<T>^ set2
)
GenericParameters
- T
Parameters
- set1
- set2
Return Value
Returns IEnumerable.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Target Platforms
See Also
Reference
CollectionExtensions Class
CollectionExtensions Members
Microsoft.OneGet.Utility.Extensions Namespace