Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify names (IDE0001) #861

Merged
merged 3 commits into from
Nov 4, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion MoreLinq.Test/ToDataTableTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public void ToDataTableNullMemberExpressionMethod()
Expression<Func<TestObject, object>> expression = null;

AssertThrowsArgument.Exception("expressions",() =>
_testObjects.ToDataTable<TestObject>(expression));
_testObjects.ToDataTable(expression));
}

[Test]
Expand Down
2 changes: 1 addition & 1 deletion MoreLinq/Lookup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public IEnumerable<TResult> ApplyResultSelector<TResult>(Func<TKey, IEnumerable<
if (g != null) {
do {
g = g.next;
if (g.count != g.elements.Length) { Array.Resize<TElement>(ref g.elements, g.count); }
if (g.count != g.elements.Length) { Array.Resize(ref g.elements, g.count); }
yield return resultSelector(g.key, g.elements);
} while (g != _lastGrouping);
}
Expand Down
8 changes: 4 additions & 4 deletions MoreLinq/PartialSort.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public static IEnumerable<T> PartialSort<T>(this IEnumerable<T> source, int coun
}

/// <summary>
/// Combines <see cref="MoreEnumerable.OrderBy{T, TKey}(IEnumerable{T}, Func{T, TKey}, IComparer{TKey}, OrderByDirection)"/>,
/// Combines <see cref="OrderBy{T, TKey}(IEnumerable{T}, Func{T, TKey}, IComparer{TKey}, OrderByDirection)"/>,
/// where each element is its key, and <see cref="Enumerable.Take{TSource}(IEnumerable{TSource},int)"/>
/// in a single operation.
/// An additional parameter specifies the direction of the sort
Expand Down Expand Up @@ -88,7 +88,7 @@ public static IEnumerable<T> PartialSort<T>(this IEnumerable<T> source,
}

/// <summary>
/// Combines <see cref="MoreEnumerable.OrderBy{T, TKey}(IEnumerable{T}, Func{T, TKey}, IComparer{TKey}, OrderByDirection)"/>,
/// Combines <see cref="OrderBy{T, TKey}(IEnumerable{T}, Func{T, TKey}, IComparer{TKey}, OrderByDirection)"/>,
/// where each element is its key, and <see cref="Enumerable.Take{TSource}(IEnumerable{TSource},int)"/>
/// in a single operation.
/// Additional parameters specify how the elements compare to each other and
Expand Down Expand Up @@ -137,7 +137,7 @@ public static IEnumerable<TSource> PartialSortBy<TSource, TKey>(
}

/// <summary>
/// Combines <see cref="MoreEnumerable.OrderBy{T, TKey}(IEnumerable{T}, Func{T, TKey}, OrderByDirection)"/>,
/// Combines <see cref="OrderBy{T, TKey}(IEnumerable{T}, Func{T, TKey}, OrderByDirection)"/>,
/// and <see cref="Enumerable.Take{TSource}(IEnumerable{TSource},int)"/> in a single operation.
/// An additional parameter specifies the direction of the sort
/// </summary>
Expand Down Expand Up @@ -188,7 +188,7 @@ public static IEnumerable<TSource> PartialSortBy<TSource, TKey>(
}

/// <summary>
/// Combines <see cref="MoreEnumerable.OrderBy{T, TKey}(IEnumerable{T}, Func{T, TKey}, OrderByDirection)"/>,
/// Combines <see cref="OrderBy{T, TKey}(IEnumerable{T}, Func{T, TKey}, OrderByDirection)"/>,
/// and <see cref="Enumerable.Take{TSource}(IEnumerable{TSource},int)"/> in a single operation.
/// Additional parameters specify how the elements compare to each other and
/// the direction of the sort.
Expand Down
2 changes: 1 addition & 1 deletion MoreLinq/PreScan.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ static partial class MoreEnumerable
/// element is a special case, it is set to the identity). More
/// generally, the pre-scan allows any commutative binary operation,
/// not just a sum.
/// The inclusive version of PreScan is <see cref="MoreEnumerable.Scan{TSource}"/>.
/// The inclusive version of PreScan is <see cref="Scan{TSource}"/>.
/// This operator uses deferred execution and streams its result.
/// </remarks>
/// <example>
Expand Down
2 changes: 1 addition & 1 deletion MoreLinq/Scan.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ static partial class MoreEnumerable
/// N-th element is the sum of the first N input elements. More
/// generally, the scan allows any commutative binary operation, not
/// just a sum.
/// The exclusive version of Scan is <see cref="MoreEnumerable.PreScan{TSource}"/>.
/// The exclusive version of Scan is <see cref="PreScan{TSource}"/>.
/// This operator uses deferred execution and streams its result.
/// </remarks>
/// <example>
Expand Down
4 changes: 2 additions & 2 deletions MoreLinq/ScanRight.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ static partial class MoreEnumerable
/// <summary>
/// Peforms a right-associative scan (inclusive prefix) on a sequence of elements.
/// This operator is the right-associative version of the
/// <see cref="MoreEnumerable.Scan{TSource}(IEnumerable{TSource}, Func{TSource, TSource, TSource})"/> LINQ operator.
/// <see cref="Scan{TSource}(IEnumerable{TSource}, Func{TSource, TSource, TSource})"/> LINQ operator.
/// </summary>
/// <typeparam name="TSource">Type of elements in source sequence.</typeparam>
/// <param name="source">Source sequence.</param>
Expand Down Expand Up @@ -60,7 +60,7 @@ public static IEnumerable<TSource> ScanRight<TSource>(this IEnumerable<TSource>
/// Peforms a right-associative scan (inclusive prefix) on a sequence of elements.
/// The specified seed value is used as the initial accumulator value.
/// This operator is the right-associative version of the
/// <see cref="MoreEnumerable.Scan{TSource, TState}(IEnumerable{TSource}, TState, Func{TState, TSource, TState})"/> LINQ operator.
/// <see cref="Scan{TSource, TState}(IEnumerable{TSource}, TState, Func{TState, TSource, TState})"/> LINQ operator.
/// </summary>
/// <typeparam name="TSource">The type of the elements of source.</typeparam>
/// <typeparam name="TAccumulate">The type of the accumulator value.</typeparam>
Expand Down