You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: MoreLinq/Lead.cs
+32-19Lines changed: 32 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -24,19 +24,26 @@ namespace MoreLinq
24
24
publicstaticpartialclassMoreEnumerable
25
25
{
26
26
/// <summary>
27
-
/// Produces a projection of a sequence by evaluating pairs of elements separated by a positive offset.
27
+
/// Produces a projection of a sequence by evaluating pairs of elements separated by a
28
+
/// positive offset.
28
29
/// </summary>
30
+
/// <typeparam name="TSource">The type of the elements in the source sequence.</typeparam>
31
+
/// <typeparam name="TResult">The type of the elements in the result sequence.</typeparam>
32
+
/// <param name="source">The sequence over which to evaluate lead.</param>
33
+
/// <param name="offset">The offset (expressed as a positive number) by which to lead each
34
+
/// element of the sequence.</param>
35
+
/// <param name="resultSelector">A projection function which accepts the current and
36
+
/// subsequent (lead) element (in that order) and produces a result.</param>
37
+
/// <returns>
38
+
/// A sequence produced by projecting each element of the sequence with its lead
39
+
/// pairing.</returns>
29
40
/// <remarks>
30
-
/// This operator evaluates in a deferred and streaming manner.<br/>
31
-
/// For elements of the sequence that are less than <paramref name="offset"/> items from the end,
32
-
/// default(T) is used as the lead value.<br/>
41
+
/// <para>
42
+
/// This operator evaluates in a deferred and streaming manner.</para>
43
+
/// <para>
44
+
/// For elements of the sequence that are less than <paramref name="offset"/> items from the
45
+
/// end, <c>default(T)</c> is used as the lead value.</para>
33
46
/// </remarks>
34
-
/// <typeparam name="TSource">The type of the elements in the source sequence</typeparam>
35
-
/// <typeparam name="TResult">The type of the elements in the result sequence</typeparam>
36
-
/// <param name="source">The sequence over which to evaluate Lead</param>
37
-
/// <param name="offset">The offset (expressed as a positive number) by which to lead each element of the sequence</param>
38
-
/// <param name="resultSelector">A projection function which accepts the current and subsequent (lead) element (in that order) and produces a result</param>
39
-
/// <returns>A sequence produced by projecting each element of the sequence with its lead pairing</returns>
@@ -48,18 +55,24 @@ public static IEnumerable<TResult> Lead<TSource, TResult>(this IEnumerable<TSour
48
55
}
49
56
50
57
/// <summary>
51
-
/// Produces a projection of a sequence by evaluating pairs of elements separated by a positive offset.
58
+
/// Produces a projection of a sequence by evaluating pairs of elements separated by a
59
+
/// positive offset.
52
60
/// </summary>
61
+
/// <typeparam name="TSource">The type of the elements in the source sequence.</typeparam>
62
+
/// <typeparam name="TResult">The type of the elements in the result sequence.</typeparam>
63
+
/// <param name="source">The sequence over which to evaluate Lead.</param>
64
+
/// <param name="offset">The offset (expressed as a positive number) by which to lead each
65
+
/// element of the sequence.</param>
66
+
/// <param name="defaultLeadValue">A default value supplied for the leading element when
67
+
/// none is available.</param>
68
+
/// <param name="resultSelector">A projection function which accepts the current and
69
+
/// subsequent (lead) element (in that order) and produces a result.</param>
70
+
/// <returns>
71
+
/// A sequence produced by projecting each element of the sequence with its lead
72
+
/// pairing.</returns>
53
73
/// <remarks>
54
-
/// This operator evaluates in a deferred and streaming manner.<br/>
74
+
/// This operator evaluates in a deferred and streaming manner.
55
75
/// </remarks>
56
-
/// <typeparam name="TSource">The type of the elements in the source sequence</typeparam>
57
-
/// <typeparam name="TResult">The type of the elements in the result sequence</typeparam>
58
-
/// <param name="source">The sequence over which to evaluate Lead</param>
59
-
/// <param name="offset">The offset (expressed as a positive number) by which to lead each element of the sequence</param>
60
-
/// <param name="defaultLeadValue">A default value supplied for the leading element when none is available</param>
61
-
/// <param name="resultSelector">A projection function which accepts the current and subsequent (lead) element (in that order) and produces a result</param>
62
-
/// <returns>A sequence produced by projecting each element of the sequence with its lead pairing</returns>
0 commit comments