Jaa


Sequence.Reducer<TSource, TDest> Delegate

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

The latest Unity Application Block information can be found at the Unity Application Block site.

A delegate that defines the function passed to the Reduce<TSource, TDest>(IEnumerable<TSource>, TDest, Sequence.Reducer<TSource, TDest>) methods.

Namespace:  Microsoft.Practices.ObjectBuilder2
Assembly:  Microsoft.Practices.ObjectBuilder2 (in Microsoft.Practices.ObjectBuilder2.dll)

Syntax

'Declaration
Public Delegate Function Reducer(Of TSource, TDest) ( _
    currentItem As TSource, _
    accumulator As TDest _
) As TDest
public delegate TDest Reducer<TSource, TDest>(
    TSource currentItem,
    TDest accumulator
)
generic<typename TSource, typename TDest>
public delegate TDest Reducer(
    TSource currentItem, 
    TDest accumulator
)
JScript does not support generic types or methods.

Parameters

  • currentItem
    Type: TSource
    Current item to process.
  • accumulator
    Type: TDest
    Current value of the accumulator.

Type Parameters

  • TSource
    Type of item being reduced.
  • TDest
    Type of the accumulator object.

Return Value

See Also

Microsoft.Practices.ObjectBuilder2 Namespace