Skip to content

Commit 074f04d

Browse files
Document System.Collections.Generic.IEnumerable<TSource> (#3671)
* Document System.Collections.Generic.IEnumerable<TSource> * suggestions by gewarren Co-Authored-By: Genevieve Warren <[email protected]>
1 parent 2644c95 commit 074f04d

File tree

1 file changed

+32
-12
lines changed

1 file changed

+32
-12
lines changed

xml/System.Linq/Enumerable.xml

Lines changed: 32 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9567,12 +9567,22 @@ Only unique elements are returned.
95679567
<Parameter Name="count" Type="System.Int32" Index="1" FrameworkAlternate="netcore-2.0;netcore-2.1;netcore-2.2;netcore-3.0;netstandard-2.1;netcore-3.1" />
95689568
</Parameters>
95699569
<Docs>
9570-
<typeparam name="TSource">To be added.</typeparam>
9571-
<param name="source">To be added.</param>
9572-
<param name="count">To be added.</param>
9573-
<summary>To be added.</summary>
9574-
<returns>To be added.</returns>
9575-
<remarks>To be added.</remarks>
9570+
<typeparam name="TSource">The type of the elements in the enumerable collection.</typeparam>
9571+
<param name="source">An enumerable collection instance.</param>
9572+
<param name="count">The number of elements to omit from the end of the collection.</param>
9573+
<summary>Returns a new enumerable collection that contains the elements from <paramref name="source" /> with the last <paramref name="count" /> elements of the source collection omitted.</summary>
9574+
<returns>A new enumerable collection that contains the elements from <paramref name="source" /> minus <paramref name="count" /> elements from the end of the collection.</returns>
9575+
<remarks>
9576+
<format type="text/markdown"><![CDATA[
9577+
9578+
## Remarks
9579+
9580+
If `count` is not a positive number, this method returns an identical copy of the `source` enumerable collection.
9581+
9582+
]]></format>
9583+
</remarks>
9584+
<exception cref="T:System.ArgumentNullException">
9585+
<paramref name="source" /> is <see langword="null" />.</exception>
95769586
</Docs>
95779587
</Member>
95789588
<MemberGroup MemberName="SkipWhile&lt;TSource&gt;">
@@ -11193,12 +11203,22 @@ Only unique elements are returned.
1119311203
<Parameter Name="count" Type="System.Int32" Index="1" FrameworkAlternate="netcore-2.0;netcore-2.1;netcore-2.2;netcore-3.0;netstandard-2.1;netcore-3.1" />
1119411204
</Parameters>
1119511205
<Docs>
11196-
<typeparam name="TSource">To be added.</typeparam>
11197-
<param name="source">To be added.</param>
11198-
<param name="count">To be added.</param>
11199-
<summary>To be added.</summary>
11200-
<returns>To be added.</returns>
11201-
<remarks>To be added.</remarks>
11206+
<typeparam name="TSource">The type of the elements in the enumerable collection.</typeparam>
11207+
<param name="source">An enumerable collection instance.</param>
11208+
<param name="count">The number of elements to take from the end of the collection.</param>
11209+
<summary>Returns a new enumerable collection that contains the last <paramref name="count" /> elements from <paramref name="source" />.</summary>
11210+
<returns>A new enumerable collection that contains the last <paramref name="count" /> elements from <paramref name="source" />.</returns>
11211+
<remarks>
11212+
<format type="text/markdown"><![CDATA[
11213+
11214+
## Remarks
11215+
11216+
If `count` is not a positive number, this method returns an empty enumerable collection.
11217+
11218+
]]></format>
11219+
</remarks>
11220+
<exception cref="T:System.ArgumentNullException">
11221+
<paramref name="source" /> is <see langword="null" />.</exception>
1120211222
</Docs>
1120311223
</Member>
1120411224
<MemberGroup MemberName="TakeWhile&lt;TSource&gt;">

0 commit comments

Comments
 (0)