CollectionExtensions.ConcatSingleItem Method
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 enumerable As IEnumerable(Of T)
Dim item As T
Dim returnValue As IEnumerable(Of T)
returnValue = CollectionExtensions.ConcatSingleItem(enumerable, item)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function ConcatSingleItem(Of T) ( _
enumerable As IEnumerable(Of T), _
item As T _
) As IEnumerable(Of T)
[ExtensionAttribute]
public static IEnumerable<T> ConcatSingleItem<T> (
IEnumerable<T> enumerable,
T item
)
[ExtensionAttribute]
public:
generic<typename T>
static IEnumerable<T>^ ConcatSingleItem (
IEnumerable<T>^ enumerable,
T item
)
GenericParameters
- T
Parameters
- enumerable
- item
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