StringExtensions.SafeAggregate 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
Dim source As IEnumerable(Of TSource)
Dim func As Func(Of TSource, TSource, TSource)
Dim returnValue As TSource

returnValue = StringExtensions.SafeAggregate(source, func)

[ExtensionAttribute] 
public static TSource SafeAggregate<TSource> (
	IEnumerable<TSource> source,
	Func<TSource,TSource,TSource> func
)

GenericParameters

TSource

Parameters

source

func

Return Value

Returns IEnumerable.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

 

Target Platforms


Show: