Skip to content

Commit 990d69a

Browse files
committed
Change: Rename SpanLinq to SpanLINQ for consistency
1 parent 94fa202 commit 990d69a

22 files changed

+66
-35
lines changed

src/CodeOfChaos.Extensions/SpanLinq/SpanLinqAllExtensions.cs renamed to src/CodeOfChaos.Extensions/SpanLINQ/SpanLINQAllExtensions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ namespace CodeOfChaos.SpanLINQ;
66
// ---------------------------------------------------------------------------------------------------------------------
77
// Code
88
// ---------------------------------------------------------------------------------------------------------------------
9-
public static class SpanLinqAllExtensions {
9+
// ReSharper disable once InconsistentNaming
10+
public static class SpanLINQAllExtensions {
1011

1112
public static bool All<T>(this in Span<T> span, Func<T, bool> predicate)
1213
=> All((ReadOnlySpan<T>)span, predicate);

src/CodeOfChaos.Extensions/SpanLinq/SpanLinqAnyExtensions.cs renamed to src/CodeOfChaos.Extensions/SpanLINQ/SpanLINQAnyExtensions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ namespace CodeOfChaos.SpanLINQ;
66
// ---------------------------------------------------------------------------------------------------------------------
77
// Code
88
// ---------------------------------------------------------------------------------------------------------------------
9-
public static class SpanLinqAnyExtensions {
9+
// ReSharper disable once InconsistentNaming
10+
public static class SpanLINQAnyExtensions {
1011
public static bool Any<T>(this in Span<T> span)
1112
=> Any((ReadOnlySpan<T>)span);
1213

src/CodeOfChaos.Extensions/SpanLinq/SpanLinqAverageExtensions.cs renamed to src/CodeOfChaos.Extensions/SpanLINQ/SpanLINQAverageExtensions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ namespace System;
66
// ---------------------------------------------------------------------------------------------------------------------
77
// Code
88
// ---------------------------------------------------------------------------------------------------------------------
9-
public static class SpanLinqAverageExtensions {
9+
// ReSharper disable once InconsistentNaming
10+
public static class SpanLINQAverageExtensions {
1011

1112
public static double Average<T>(this in Span<T> span, Func<T, double> selector)
1213
=> Average((ReadOnlySpan<T>)span, selector);

src/CodeOfChaos.Extensions/SpanLinq/SpanLinqCountExtensions.cs renamed to src/CodeOfChaos.Extensions/SpanLINQ/SpanLINQCountExtensions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ namespace CodeOfChaos.SpanLINQ;
77
// ---------------------------------------------------------------------------------------------------------------------
88
// Code
99
// ---------------------------------------------------------------------------------------------------------------------
10-
public static class SpanLinqCountExtensions {
10+
// ReSharper disable once InconsistentNaming
11+
public static class SpanLINQCountExtensions {
1112

1213
public static int Count<T>(this in Span<T> span, Func<T, bool> predicate)
1314
=> Count((ReadOnlySpan<T>)span, predicate);

src/CodeOfChaos.Extensions/SpanLinq/SpanLinqFirstExtensions.cs renamed to src/CodeOfChaos.Extensions/SpanLINQ/SpanLINQFirstExtensions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ namespace CodeOfChaos.SpanLINQ;
66
// ---------------------------------------------------------------------------------------------------------------------
77
// Code
88
// ---------------------------------------------------------------------------------------------------------------------
9-
public static class SpanLinqFirstExtensions {
9+
// ReSharper disable once InconsistentNaming
10+
public static class SpanLINQFirstExtensions {
1011

1112
public static T First<T>(this in Span<T> span, Func<T, bool> predicate)
1213
=> First((ReadOnlySpan<T>)span, predicate);

src/CodeOfChaos.Extensions/SpanLinq/SpanLinqLastExtensions.cs renamed to src/CodeOfChaos.Extensions/SpanLINQ/SpanLINQLastExtensions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ namespace CodeOfChaos.SpanLINQ;
66
// ---------------------------------------------------------------------------------------------------------------------
77
// Code
88
// ---------------------------------------------------------------------------------------------------------------------
9-
public static class SpanLinqLastExtensions {
9+
// ReSharper disable once InconsistentNaming
10+
public static class SpanLINQLastExtensions {
1011

1112
public static T Last<T>(this in Span<T> span, Func<T, bool> predicate)
1213
=> Last((ReadOnlySpan<T>)span, predicate);

src/CodeOfChaos.Extensions/SpanLinq/SpanLinqMaxExtensions.cs renamed to src/CodeOfChaos.Extensions/SpanLINQ/SpanLINQMaxExtensions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ namespace CodeOfChaos.SpanLINQ;
66
// ---------------------------------------------------------------------------------------------------------------------
77
// Code
88
// ---------------------------------------------------------------------------------------------------------------------
9-
public static class SpanLinqMaxExtensions {
9+
// ReSharper disable once InconsistentNaming
10+
public static class SpanLINQMaxExtensions {
1011

1112
public static TResult Max<T, TResult>(this in Span<T> span, Func<T, TResult> selector) where TResult : IComparable<TResult>
1213
=> Max((ReadOnlySpan<T>)span, selector);

src/CodeOfChaos.Extensions/SpanLinq/SpanLinqMinExtensions.cs renamed to src/CodeOfChaos.Extensions/SpanLINQ/SpanLINQMinExtensions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ namespace CodeOfChaos.SpanLINQ;
66
// ---------------------------------------------------------------------------------------------------------------------
77
// Code
88
// ---------------------------------------------------------------------------------------------------------------------
9-
public static class SpanLinqMinExtensions {
9+
// ReSharper disable once InconsistentNaming
10+
public static class SpanLINQMinExtensions {
1011

1112
public static TResult Min<T, TResult>(this in Span<T> span, Func<T, TResult> selector) where TResult : IComparable<TResult>
1213
=> Min((ReadOnlySpan<T>)span, selector);

src/CodeOfChaos.Extensions/SpanLinq/SpanLinqSelectExtensions.cs renamed to src/CodeOfChaos.Extensions/SpanLINQ/SpanLINQSelectExtensions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ namespace CodeOfChaos.SpanLINQ;
66
// ---------------------------------------------------------------------------------------------------------------------
77
// Code
88
// ---------------------------------------------------------------------------------------------------------------------
9-
public static class SpanLinqSelectExtensions {
9+
// ReSharper disable once InconsistentNaming
10+
public static class SpanLINQSelectExtensions {
1011
public static void Select<TSource, TResult>(this in Span<TSource> source, Func<TSource, TResult> selector, Span<TResult> destination)
1112
=> Select((ReadOnlySpan<TSource>)source, selector, destination);
1213

src/CodeOfChaos.Extensions/SpanLinq/SpanLinqSumExtensions.cs renamed to src/CodeOfChaos.Extensions/SpanLINQ/SpanLINQSumExtensions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ namespace CodeOfChaos.SpanLINQ;
77
// ---------------------------------------------------------------------------------------------------------------------
88
// Code
99
// ---------------------------------------------------------------------------------------------------------------------
10-
public static class SpanLinqSumExtensions {
10+
// ReSharper disable once InconsistentNaming
11+
public static class SpanLINQSumExtensions {
1112
public static int Sum<T>(this in Span<T> span, Func<T, int> selector, int length = -1)
1213
=> Sum((ReadOnlySpan<T>)span, selector, length);
1314

0 commit comments

Comments
 (0)