'Declaration Public Shared Function WithProgress (Of T,T2)( _ ByVal items As IEnumerable(Of T), _ ByVal progress As IProgress(Of T2), _ ByVal getProgressInfo As Func(Of T,T2) _ ) As IEnumerable(Of T)
public static IEnumerable<T> WithProgress<T,T2>( IEnumerable<T> items, IProgress<T2> progress, Func<T,T2> getProgressInfo )
Parameters
- items
- The source sequence.
- progress
- The IProgress instance to report progress to.
- getProgressInfo
- A function to get progress information from an element.
Type Parameters
- T
- The type of elements in the sequence.
- T2
- The type of progress information.
Return Value
A sequence that reports progress.