Skip to content

Commit 9b13eae

Browse files
committed
Resolve xml errors led to warnings
1 parent 4e0fb14 commit 9b13eae

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Orm/Xtensive.Orm/Core/Extensions/EnumerableExtensions.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ static TSource InstanceSelector(TSource x)
342342
/// </summary>
343343
/// <typeparam name="TSource">The type of the elements of source.</typeparam>
344344
/// <typeparam name="TKey">The type of the key elements.</typeparam>
345+
/// <typeparam name="TValue">The type of values in result dictionary</typeparam>
345346
/// <param name="source">A sequence to create a <see cref="Dictionary{TKey, TValue}"/> from.</param>
346347
/// <param name="keySelector">A function to extract a key from each element.</param>
347348
/// <param name="elementSelector">A funtion to extract a value from each element.</param>
@@ -362,6 +363,7 @@ public static Dictionary<TKey, TValue> ToDictionary<TSource, TKey, TValue>(
362363
/// </summary>
363364
/// <typeparam name="TSource">The type of the elements of source.</typeparam>
364365
/// <typeparam name="TKey">The type of the key elements.</typeparam>
366+
/// <typeparam name="TValue">The type of values in result dictionary</typeparam>
365367
/// <param name="source">A sequence to create a <see cref="Dictionary{TKey, TValue}"/> from.</param>
366368
/// <param name="keySelector">A function to extract a key from each element.</param>
367369
/// <param name="elementSelector">A funtion to extract a value from each element.</param>
@@ -372,16 +374,16 @@ public static Dictionary<TKey, TValue> ToDictionary<TSource, TKey, TValue>(
372374
this IEnumerable<TSource> source,
373375
Func<TSource, TKey> keySelector,
374376
Func<TSource, TValue> elementSelector,
375-
IEqualityComparer<TKey> equalityComparer,
377+
IEqualityComparer<TKey> comparer,
376378
int capacity)
377379
{
378380
ArgumentValidator.EnsureArgumentNotNull(source, nameof(source));
379381
ArgumentValidator.EnsureArgumentNotNull(keySelector, nameof(keySelector));
380382
ArgumentValidator.EnsureArgumentNotNull(elementSelector, nameof(elementSelector));
381383
ArgumentValidator.EnsureArgumentIsGreaterThanOrEqual(capacity, 0, nameof(capacity));
382384

383-
var dictionary = equalityComparer != null
384-
? new Dictionary<TKey, TValue>(capacity, equalityComparer)
385+
var dictionary = comparer != null
386+
? new Dictionary<TKey, TValue>(capacity, comparer)
385387
: new Dictionary<TKey, TValue>(capacity);
386388
foreach (var item in source) {
387389
dictionary.Add(keySelector(item), elementSelector(item));

0 commit comments

Comments
 (0)