Skip to content

Commit 158d227

Browse files
committed
Fix method comments for All
1 parent 48a0075 commit 158d227

1 file changed

Lines changed: 9 additions & 29 deletions

File tree

src/System.Linq.Dynamic.Core/DynamicQueryableExtensions.cs

Lines changed: 9 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -104,43 +104,23 @@ public static object Aggregate([NotNull] this IQueryable source, [NotNull] strin
104104
#region All
105105
private static readonly MethodInfo _AllPredicate = QueryableMethodFinder.GetMethod(nameof(Queryable.All), 1);
106106

107-
/// <summary>
108-
/// Determines whether all the elements of a sequence satisfy a condition.
109-
/// </summary>
110-
/// <remarks>
111-
/// Multiple active operations on the same context instance are not supported. Use 'await' to ensure
112-
/// that All asynchronous operations have completed before calling another method on this context.
113-
/// </remarks>
114-
/// <param name="source">
115-
/// An <see cref="IQueryable" /> to calculate the All of.
116-
/// </param>
117-
/// <param name="predicate">A projection function to apply to each element.</param>
107+
/// <summary>Determines whether all the elements of a sequence satisfy a condition.</summary>
108+
/// <param name="source">A sequence whose elements to test for a condition.</param>
109+
/// <param name="predicate">A function to test each element for a condition.</param>
118110
/// <param name="args">An object array that contains zero or more objects to insert into the predicate as parameters. Similar to the way String.Format formats strings.</param>
119-
/// <returns>
120-
/// true if every element of the source sequence passes the test in the specified predicate, or if the sequence is empty; otherwise, false.
121-
/// </returns>
111+
/// <returns>true if every element of the source sequence passes the test in the specified predicate, or if the sequence is empty; otherwise, false.</returns>
122112
[PublicAPI]
123113
public static bool All([NotNull] this IQueryable source, [NotNull] string predicate, [CanBeNull] params object[] args)
124114
{
125115
return All(source, ParsingConfig.Default, predicate, args);
126116
}
127117

128-
/// <summary>
129-
/// Determines whether all the elements of a sequence satisfy a condition.
130-
/// </summary>
131-
/// <remarks>
132-
/// Multiple active operations on the same context instance are not supported. Use 'await' to ensure
133-
/// that All asynchronous operations have completed before calling another method on this context.
134-
/// </remarks>
135-
/// <param name="source">
136-
/// An <see cref="IQueryable" /> to calculate the All of.
137-
/// </param>
118+
/// <summary>Determines whether all the elements of a sequence satisfy a condition.</summary>
119+
/// <param name="source">A sequence whose elements to test for a condition.</param>
138120
/// <param name="config">The <see cref="ParsingConfig"/>.</param>
139-
/// <param name="predicate">A projection function to apply to each element.</param>
121+
/// <param name="predicate">A function to test each element for a condition.</param>
140122
/// <param name="args">An object array that contains zero or more objects to insert into the predicate as parameters. Similar to the way String.Format formats strings.</param>
141-
/// <returns>
142-
/// true if every element of the source sequence passes the test in the specified predicate, or if the sequence is empty; otherwise, false.
143-
/// </returns>
123+
/// <returns>true if every element of the source sequence passes the test in the specified predicate, or if the sequence is empty; otherwise, false.</returns>
144124
[PublicAPI]
145125
public static bool All([NotNull] this IQueryable source, [NotNull] ParsingConfig config, [NotNull] string predicate, [CanBeNull] params object[] args)
146126
{
@@ -153,7 +133,7 @@ public static bool All([NotNull] this IQueryable source, [NotNull] ParsingConfig
153133

154134
return Execute<bool>(_AllPredicate, source, Expression.Quote(lambda));
155135
}
156-
#endregion AllAsync
136+
#endregion All
157137

158138
#region Any
159139
private static readonly MethodInfo _any = QueryableMethodFinder.GetMethod(nameof(Queryable.Any));

0 commit comments

Comments
 (0)