Skip to content

Commit

Permalink
apply more custom transformations
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriktsarpalis committed Apr 21, 2021
1 parent 7da403e commit 183432c
Show file tree
Hide file tree
Showing 52 changed files with 980 additions and 921 deletions.
701 changes: 453 additions & 248 deletions src/libraries/System.Linq.Queryable/src/System/Linq/Queryable.cs

Large diffs are not rendered by default.

15 changes: 9 additions & 6 deletions src/libraries/System.Linq/src/System/Linq/AnyAll.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ public static partial class Enumerable
/// > [!NOTE]
/// > This method does not return any one element of a collection. Instead, it determines whether the collection contains any elements.
/// ]]></format>
/// The enumeration of <paramref name="source" /> is stopped as soon as the result can be determined.
/// In Visual Basic query expression syntax, an `Aggregate Into Any()` clause translates to an invocation of <see cref="O:Enumerable.Any" />.</remarks>
/// <para>The enumeration of <paramref name="source" /> is stopped as soon as the result can be determined.</para>
/// <para>In Visual Basic query expression syntax, an `Aggregate Into Any()` clause translates to an invocation of <see cref="O:Enumerable.Any" />.</para>
/// </remarks>
/// <example>The following code example demonstrates how to use <see cref="O:Enumerable.Any" /> to determine whether a sequence contains any elements.
/// :::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Linq.Enumerable/CS/enumerable.cs" interactive="try-dotnet-method" id="Snippet5":::
/// :::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Linq.Enumerable/VB/Enumerable.vb" id="Snippet5":::
Expand Down Expand Up @@ -73,8 +74,9 @@ public static bool Any<TSource>(this IEnumerable<TSource> source)
/// > [!NOTE]
/// > This method does not return any one element of a collection. Instead, it determines whether any elements of a collection satisfy a condition.
/// ]]></format>
/// The enumeration of <paramref name="source" /> is stopped as soon as the result can be determined.
/// In Visual Basic query expression syntax, an `Aggregate Into Any()` clause translates to an invocation of <see cref="O:Enumerable.Any" />.</remarks>
/// <para>The enumeration of <paramref name="source" /> is stopped as soon as the result can be determined.</para>
/// <para>In Visual Basic query expression syntax, an `Aggregate Into Any()` clause translates to an invocation of <see cref="O:Enumerable.Any" />.</para>
/// </remarks>
/// <example>The following code example demonstrates how to use <see cref="O:Enumerable.Any" /> to determine whether any element in a sequence satisfies a condition.
/// :::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Linq.Enumerable/CS/enumerable.cs" id="Snippet6":::
/// :::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Linq.Enumerable/VB/Enumerable.vb" id="Snippet6":::</example>
Expand Down Expand Up @@ -112,8 +114,9 @@ public static bool Any<TSource>(this IEnumerable<TSource> source, Func<TSource,
/// > [!NOTE]
/// > This method does not return all the elements of a collection. Instead, it determines whether all the elements of a collection satisfy a condition.
/// ]]></format>
/// The enumeration of <paramref name="source" /> is stopped as soon as the result can be determined.
/// In Visual Basic query expression syntax, an `Aggregate Into All()` clause translates to an invocation of <see cref="O:Enumerable.All" />.</remarks>
/// <para>The enumeration of <paramref name="source" /> is stopped as soon as the result can be determined.</para>
/// <para>In Visual Basic query expression syntax, an `Aggregate Into All()` clause translates to an invocation of <see cref="O:Enumerable.All" />.</para>
/// </remarks>
/// <example>The following code example demonstrates how to use <see cref="O:Enumerable.All" /> to determine whether all the elements in a sequence satisfy a condition. Variable `allStartWithB` is true if all the pet names start with "B" or if the `pets` array is empty.
/// :::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_CLR_System/system.Linq.Enumerable/CS/enumerable.cs" id="Snippet4":::
/// :::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_CLR_System/system.Linq.Enumerable/VB/Enumerable.vb" id="Snippet4":::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@

namespace System.Linq
{
/// <summary>Provides a set of <see langword="static" /> (<see langword="Shared" /> in Visual Basic) methods for querying objects that implement <see cref="IEnumerable{T}" />.</summary>
/// <remarks>The methods in this class provide an implementation of the standard query operators for querying data sources that implement <see cref="IEnumerable{T}" />. The standard query operators are general purpose methods that follow the LINQ pattern and enable you to express traversal, filter, and projection operations over data in any .NET-based programming language.
/// The majority of the methods in this class are defined as extension methods that extend <see cref="IEnumerable{T}" />. This means they can be called like an instance method on any object that implements <see cref="IEnumerable{T}" />.
/// Methods that are used in a query that returns a sequence of values do not consume the target data until the query object is enumerated. This is known as deferred execution. Methods that are used in a query that returns a singleton value execute and consume the target data immediately.</remarks>
/// <related type="Article" href="https://msdn.microsoft.com/library/24cda21e-8af8-4632-b519-c404a839b9b2">Standard Query Operators Overview</related>
/// <related type="Article" href="/dotnet/csharp/programming-guide/classes-and-structs/extension-methods">Extension Methods (C# Programming Guide)</related>
/// <related type="Article" href="/dotnet/visual-basic/programming-guide/language-features/procedures/extension-methods">Extension Methods (Visual Basic)</related>
public static partial class Enumerable
{
private abstract partial class AppendPrependIterator<TSource> : IIListProvider<TSource>
Expand Down
7 changes: 0 additions & 7 deletions src/libraries/System.Linq/src/System/Linq/AppendPrepend.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,6 @@

namespace System.Linq
{
/// <summary>Provides a set of <see langword="static" /> (<see langword="Shared" /> in Visual Basic) methods for querying objects that implement <see cref="IEnumerable{T}" />.</summary>
/// <remarks>The methods in this class provide an implementation of the standard query operators for querying data sources that implement <see cref="IEnumerable{T}" />. The standard query operators are general purpose methods that follow the LINQ pattern and enable you to express traversal, filter, and projection operations over data in any .NET-based programming language.
/// The majority of the methods in this class are defined as extension methods that extend <see cref="IEnumerable{T}" />. This means they can be called like an instance method on any object that implements <see cref="IEnumerable{T}" />.
/// Methods that are used in a query that returns a sequence of values do not consume the target data until the query object is enumerated. This is known as deferred execution. Methods that are used in a query that returns a singleton value execute and consume the target data immediately.</remarks>
/// <related type="Article" href="https://msdn.microsoft.com/library/24cda21e-8af8-4632-b519-c404a839b9b2">Standard Query Operators Overview</related>
/// <related type="Article" href="/dotnet/csharp/programming-guide/classes-and-structs/extension-methods">Extension Methods (C# Programming Guide)</related>
/// <related type="Article" href="/dotnet/visual-basic/programming-guide/language-features/procedures/extension-methods">Extension Methods (Visual Basic)</related>
public static partial class Enumerable
{
/// <summary>Appends a value to the end of the sequence.</summary>
Expand Down

0 comments on commit 183432c

Please sign in to comment.