@@ -1333,13 +1333,16 @@ public static OrderedParallelQuery<TSource> ThenByDescending<TSource, TKey>(
1333
1333
/// <summary>
1334
1334
/// Groups in parallel the elements of a sequence according to a specified key selector function.
1335
1335
/// </summary>
1336
- /// <typeparam name="TSource">The type of elements of <paramref name="source"/>.</typeparam>
1336
+ /// <typeparam name="TSource">The type of the elements of <paramref name="source"/>.</typeparam>
1337
1337
/// <typeparam name="TKey">The type of the key returned by <paramref name="keySelector"/>.</typeparam>
1338
- /// <param name="source">An OrderedParallelQuery{TSource}than contains
1339
- /// elements to sort.</param>
1338
+ /// <param name="source">A sequence whose elements to group.</param>
1340
1339
/// <param name="keySelector">A function to extract a key from an element.</param>
1341
- /// <returns>An OrderedParallelQuery{TSource}whose elements are sorted
1342
- /// descending according to a key.</returns>
1340
+ /// <returns>A collection of elements of type IGrouping{TKey, TElement}, where each element represents a
1341
+ /// group and its key.</returns>
1342
+ /// <exception cref="T:System.ArgumentNullException">
1343
+ /// <paramref name="source"/> or <paramref name="keySelector"/>
1344
+ /// is a null reference (Nothing in Visual Basic).
1345
+ /// </exception>
1343
1346
public static ParallelQuery < IGrouping < TKey , TSource > > GroupBy < TSource , TKey > (
1344
1347
this ParallelQuery < TSource > source , Func < TSource , TKey > keySelector )
1345
1348
{
@@ -1349,14 +1352,13 @@ public static ParallelQuery<IGrouping<TKey, TSource>> GroupBy<TSource, TKey>(
1349
1352
/// <summary>
1350
1353
/// Groups in parallel the elements of a sequence according to a specified key selector function and compares the keys by using a specified comparer.
1351
1354
/// </summary>
1352
- /// <typeparam name="TSource">The type of elements of <paramref name="source"/>.</typeparam>
1353
- /// <typeparam name="TKey">The type of the key returned by <paramref name="keySelector"/>>.</typeparam>
1354
- /// <param name="source">An OrderedParallelQuery{TSource} than contains
1355
- /// elements to sort.</param>
1355
+ /// <typeparam name="TSource">The type of the elements of <paramref name="source"/>.</typeparam>
1356
+ /// <typeparam name="TKey">The type of the key returned by <paramref name="keySelector"/>.</typeparam>
1357
+ /// <param name="source">A sequence whose elements to group.</param>
1356
1358
/// <param name="keySelector">A function to extract a key from an element.</param>
1357
- /// <param name="comparer">An IComparer{TSource} to compare keys.</param>
1358
- /// <returns>An OrderedParallelQuery{TSource} whose elements are sorted
1359
- /// descending according to a key.</returns>
1359
+ /// <param name="comparer">An equality comparer to compare keys.</param>
1360
+ /// <returns>A collection of elements of type IGrouping{TKey, TElement}, where each element represents a
1361
+ /// group and its key.</returns>
1360
1362
/// <exception cref="T:System.ArgumentNullException">
1361
1363
/// <paramref name="source"/> or <paramref name="keySelector"/> is a null reference (Nothing in Visual Basic).
1362
1364
/// </exception>
@@ -1373,16 +1375,16 @@ public static ParallelQuery<IGrouping<TKey, TSource>> GroupBy<TSource, TKey>(
1373
1375
/// Groups in parallel the elements of a sequence according to a specified key selector function and
1374
1376
/// projects the elements for each group by using a specified function.
1375
1377
/// </summary>
1376
- /// <typeparam name="TSource">The type of elements of <paramref name="source"/>.</typeparam>
1378
+ /// <typeparam name="TSource">The type of the elements of <paramref name="source"/>.</typeparam>
1377
1379
/// <typeparam name="TKey">The type of the key returned by <paramref name="keySelector"/>.</typeparam>
1378
- /// <typeparam name="TElement">The type of the elements in the IGrouping</typeparam>
1379
- /// <param name="source">An OrderedParallelQuery<(Of <( TElement>)>) than contains
1380
- /// elements to sort .</param>
1380
+ /// <typeparam name="TElement">The type of the elements in each
1381
+ /// IGrouping{TKey, TElement}.</typeparam>
1382
+ /// <param name="source">A sequence whose elements to group .</param>
1381
1383
/// <param name="keySelector">A function to extract a key from an element.</param>
1382
- /// <param name="elementSelector">A function to map each source element to an element in an IGrouping.</param>
1383
- /// <returns>A ParallelQuery< IGrouping<TKey , TElement>> in C# or
1384
- /// ParallelQuery(Of IGrouping(Of TKey, TElement)) in Visual Basic where each IGrouping
1385
- /// generic object contains a collection of objects of type <typeparamref name="TElement"/> and a key.</returns>
1384
+ /// <param name="elementSelector">A function to map each source element to an element in an
1385
+ /// IGrouping{Key , TElement}.</param>
1386
+ /// <returns>A collection of elements of type IGrouping{TKey, TElement}, where each element represents a
1387
+ /// group and its key.</returns>
1386
1388
/// <exception cref="T:System.ArgumentNullException">
1387
1389
/// <paramref name="source"/> or <paramref name="keySelector"/> or
1388
1390
/// <paramref name="elementSelector"/> is a null reference (Nothing in Visual Basic).
@@ -1398,18 +1400,17 @@ public static ParallelQuery<IGrouping<TKey, TElement>> GroupBy<TSource, TKey, TE
1398
1400
/// The keys are compared by using a comparer and each group's elements are projected by
1399
1401
/// using a specified function.
1400
1402
/// </summary>
1401
- /// <typeparam name="TSource">The type of elements of <paramref name="source"/>.</typeparam>
1403
+ /// <typeparam name="TSource">The type of the elements of <paramref name="source"/>.</typeparam>
1402
1404
/// <typeparam name="TKey">The type of the key returned by <paramref name="keySelector"/>.</typeparam>
1403
- /// <typeparam name="TElement">The type of the elements in the IGrouping</typeparam>
1404
- /// <param name="source">An OrderedParallelQuery{TSource}than contains elements to sort.</param>
1405
+ /// <typeparam name="TElement">The type of the elements in each
1406
+ /// IGrouping{TKey, TElement}.</typeparam>
1407
+ /// <param name="source">A sequence whose elements to group.</param>
1405
1408
/// <param name="keySelector">A function to extract a key from an element.</param>
1406
- /// <param name="elementSelector">A function to map each source element to an element in an IGrouping.</param>
1407
- /// <param name="comparer">An IComparer{TSource} to compare keys.</param>
1408
- /// <returns>
1409
- /// A ParallelQuery{IGrouping{TKey, TElement}} in C# or
1410
- /// ParallelQuery(Of IGrouping(Of TKey, TElement)) in Visual Basic where each IGrouping
1411
- /// generic object contains a collection of objects of type <typeparamref name="TElement"/> and a key.
1412
- /// </returns>
1409
+ /// <param name="elementSelector">A function to map each source element to an element in an
1410
+ /// IGrouping{Key, TElement}.</param>
1411
+ /// <param name="comparer">An equality comparer to compare keys.</param>
1412
+ /// <returns>A collection of elements of type IGrouping{TKey, TElement}, where each element represents a
1413
+ /// group and its key.</returns>
1413
1414
/// <exception cref="T:System.ArgumentNullException">
1414
1415
/// <paramref name="source"/> or <paramref name="keySelector"/> or
1415
1416
/// <paramref name="elementSelector"/> is a null reference (Nothing in Visual Basic).
@@ -1444,8 +1445,8 @@ public static ParallelQuery<IGrouping<TKey, TElement>> GroupBy<TSource, TKey, TE
1444
1445
/// <typeparam name="TSource">The type of the elements of <paramref name="source"/>.</typeparam>
1445
1446
/// <typeparam name="TKey">The type of the key returned by <paramref name="keySelector"/>.</typeparam>
1446
1447
/// <typeparam name="TResult">The type of the result value returned by <paramref name="resultSelector"/>.</typeparam>
1447
- /// <param name="source">A sequence whose elements to group.</param>
1448
- /// <param name="keySelector">A function to extract the key for each element.</param>
1448
+ /// <param name="source">A sequence whose elements to group.</param>
1449
+ /// <param name="keySelector">A function to extract a key from an element.</param>
1449
1450
/// <param name="resultSelector">A function to create a result value from each group.</param>
1450
1451
/// <returns>A collection of elements of type <typeparamref name="TResult"/> where each element represents a
1451
1452
/// projection over a group and its key.</returns>
@@ -1472,15 +1473,11 @@ public static ParallelQuery<TResult> GroupBy<TSource, TKey, TResult>(
1472
1473
/// <typeparam name="TKey">The type of the key returned by <paramref name="keySelector"/>.</typeparam>
1473
1474
/// <typeparam name="TResult">The type of the result value returned by <paramref name="resultSelector"/>.</typeparam>
1474
1475
/// <param name="source">A sequence whose elements to group.</param>
1475
- /// <param name="keySelector">A function to extract the key for each element.</param>
1476
+ /// <param name="keySelector">A function to extract a key from an element.</param>
1476
1477
/// <param name="resultSelector">A function to create a result value from each group.</param>
1477
- /// <param name="comparer">An IEqualityComparer{TKey} to compare keys.</param>
1478
- /// <returns>
1479
- /// An <B>ParallelQuery<IGrouping<TKey, TResult>></B> in C# or
1480
- /// <B>ParallelQuery(Of IGrouping(Of TKey, TResult))</B> in Visual Basic where each
1481
- /// IGrouping<(Of <(TKey, TResult>)>) object contains a collection of objects
1482
- /// of type <typeparamref name="TResult"/> and a key.
1483
- /// </returns>
1478
+ /// <param name="comparer">An equality comparer to compare keys.</param>
1479
+ /// <returns>A collection of elements of type <typeparamref name="TResult"/> where each element represents a
1480
+ /// projection over a group and its key.</returns>
1484
1481
/// <exception cref="T:System.ArgumentNullException">
1485
1482
/// <paramref name="source"/> or <paramref name="keySelector"/> or
1486
1483
/// <paramref name="resultSelector"/> is a null reference (Nothing in Visual Basic).
@@ -1505,11 +1502,11 @@ public static ParallelQuery<TResult> GroupBy<TSource, TKey, TResult>(
1505
1502
/// IGrouping{TKey, TElement}.</typeparam>
1506
1503
/// <typeparam name="TResult">The type of the result value returned by <paramref name="resultSelector"/>.</typeparam>
1507
1504
/// <param name="source">A sequence whose elements to group.</param>
1508
- /// <param name="keySelector">A function to extract the key for each element.</param>
1505
+ /// <param name="keySelector">A function to extract a key from an element.</param>
1509
1506
/// <param name="elementSelector">A function to map each source element to an element in an
1510
- /// IGrouping<TKey , TElement> .</param>
1507
+ /// IGrouping{Key , TElement} .</param>
1511
1508
/// <param name="resultSelector">A function to create a result value from each group.</param>
1512
- /// <returns>A collection of elements of type <typeparamref name="TElement "/> where each element represents a
1509
+ /// <returns>A collection of elements of type <typeparamref name="TResult "/> where each element represents a
1513
1510
/// projection over a group and its key.</returns>
1514
1511
/// <exception cref="T:System.ArgumentNullException">
1515
1512
/// <paramref name="source"/> or <paramref name="keySelector"/> or
@@ -1535,11 +1532,11 @@ public static ParallelQuery<TResult> GroupBy<TSource, TKey, TElement, TResult>(
1535
1532
/// IGrouping{TKey, TElement}.</typeparam>
1536
1533
/// <typeparam name="TResult">The type of the result value returned by <paramref name="resultSelector"/>.</typeparam>
1537
1534
/// <param name="source">A sequence whose elements to group.</param>
1538
- /// <param name="keySelector">A function to extract the key for each element.</param>
1535
+ /// <param name="keySelector">A function to extract a key from an element.</param>
1539
1536
/// <param name="elementSelector">A function to map each source element to an element in an
1540
1537
/// IGrouping{Key, TElement}.</param>
1541
1538
/// <param name="resultSelector">A function to create a result value from each group.</param>
1542
- /// <param name="comparer">An IEqualityComparer{TKey} to compare keys.</param>
1539
+ /// <param name="comparer">An equality comparer to compare keys.</param>
1543
1540
/// <returns>A collection of elements of type <typeparamref name="TResult"/> where each element represents a
1544
1541
/// projection over a group and its key.</returns>
1545
1542
/// <exception cref="T:System.ArgumentNullException">
@@ -5354,12 +5351,12 @@ public static ParallelQuery<TResult> OfType<TResult>(this ParallelQuery source)
5354
5351
}
5355
5352
5356
5353
/// <summary>
5357
- /// Converts the elements of a ParallelQuery to the specified type.
5354
+ /// Converts the elements of a weakly-typed ParallelQuery to the specified stronger type.
5358
5355
/// </summary>
5359
- /// <typeparam name="TResult">The type to convert the elements of <paramref name="source"/> to.</typeparam>
5360
- /// <param name="source">The sequence that contains the elements to be converted.</param>
5356
+ /// <typeparam name="TResult">The stronger type to convert the elements of <paramref name="source"/> to.</typeparam>
5357
+ /// <param name="source">The sequence that contains the weakly typed elements to be converted.</param>
5361
5358
/// <returns>
5362
- /// A sequence that contains each element of the source sequence converted to the specified type.
5359
+ /// A sequence that contains each weakly-type element of the source sequence converted to the specified stronger type.
5363
5360
/// </returns>
5364
5361
/// <exception cref="T:System.ArgumentNullException">
5365
5362
/// <paramref name="source"/> is a null reference (Nothing in Visual Basic).
0 commit comments