'Declaration Public Overloads Shared Function LiveAggregate(Of TSource)( _ ByVal source As View(Of TSource), _ ByVal funcAdd As Expression(Of Func(Of TSource,TSource,TSource)), _ ByVal funcRemove As Expression(Of Func(Of TSource,TSource,TSource)), _ ByVal funcRemoveDefined As Expression(Of Func(Of TSource,TSource,Boolean)) _ ) As AggregationView(Of TSource,TSource)
Parameters
- source
- A view to aggregate over.
- funcAdd
- An accumulator function to be invoked on each element that is added to the source view.
- funcRemove
- A function to be applied to the accumulated value and to an element to obtain the changed accumulated value, when an element is removed from the source view.
- funcRemoveDefined
- A function used to determine whether funcRemove must be applied when an element is removed from the source view, or the accumulated value is not affected by its removal.
Type Parameters
- TSource
- The type of the elements of source.
Return Value
A view representing the final accumulator value.