Publish__2 - waf/Rx.NET GitHub Wiki
EnumerableEx.Publish<TSource, TResult> Method (IEnumerable<TSource>, Func<IEnumerable<TSource>, IEnumerable<TResult>>)
Publishes the source sequence within a selector function where each enumerator can obtain a view over a tail of the source sequence.
Namespace: System.Linq
Assembly: System.Interactive (in System.Interactive.dll)
public static IEnumerable<TResult> Publish<TSource, TResult>(
this IEnumerable<TSource> source,
Func<IEnumerable<TSource>, IEnumerable<TResult>> selector
)
Type: System.Collections.Generic.IEnumerable<TSource>
Source sequence.
Type: System.Func<IEnumerable<TSource>, IEnumerable<TResult>>
Selector function with published access to the source sequence for each enumerator.
Source sequence element type.
Result sequence element type.
Type: IEnumerable<TResult>
Sequence resulting from applying the selector function to the published view over the source sequence.
In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerable<TSource>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).