ListExtensions.Reducer<TSum, TItem>


Declaration

public delegate TSum Reducer<TSum, TItem>(TSum sum, TItem item);

Description

A function delegate that reduces a list into a single value.

Type Parameters

TSumThe type of the reduced value.
TItemThe type of items in the list.

Parameters

sumThe current sum.
itemThe current item being reduced.

Returns

TThe reduced value.