Skip to content

Commit cb4e418

Browse files
committed
Refactor remaining partial type declarations
1 parent 0693d6c commit cb4e418

16 files changed

+31
-53
lines changed

CommunityToolkit.HighPerformance/Extensions/ArrayExtensions.2D.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,8 @@
1515

1616
namespace CommunityToolkit.HighPerformance;
1717

18-
/// <summary>
19-
/// Helpers for working with the <see cref="Array"/> type.
20-
/// </summary>
21-
public static partial class ArrayExtensions
18+
/// <inheritdoc/>
19+
partial class ArrayExtensions
2220
{
2321
/// <summary>
2422
/// Returns a reference to the first element within a given 2D <typeparamref name="T"/> array, with no bounds checks.

CommunityToolkit.HighPerformance/Extensions/ArrayExtensions.3D.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@
1414

1515
namespace CommunityToolkit.HighPerformance;
1616

17-
/// <summary>
18-
/// Helpers for working with the <see cref="Array"/> type.
19-
/// </summary>
20-
public static partial class ArrayExtensions
17+
/// <inheritdoc/>
18+
partial class ArrayExtensions
2119
{
2220
/// <summary>
2321
/// Returns a reference to the first element within a given 3D <typeparamref name="T"/> array, with no bounds checks.

CommunityToolkit.HighPerformance/Helpers/Internals/SpanHelper.Hash.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@
77

88
namespace CommunityToolkit.HighPerformance.Helpers.Internals;
99

10-
/// <summary>
11-
/// Helpers to process sequences of values by reference.
12-
/// </summary>
13-
internal static partial class SpanHelper
10+
/// <inheritdoc/>
11+
partial class SpanHelper
1412
{
1513
/// <summary>
1614
/// Calculates the djb2 hash for the target sequence of items of a given type.

CommunityToolkit.HighPerformance/Helpers/ParallelHelper.For.IAction2D.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@
99

1010
namespace CommunityToolkit.HighPerformance.Helpers;
1111

12-
/// <summary>
13-
/// Helpers to work with parallel code in a highly optimized manner.
14-
/// </summary>
15-
public static partial class ParallelHelper
12+
/// <inheritdoc/>
13+
partial class ParallelHelper
1614
{
1715
#if NETSTANDARD2_1_OR_GREATER
1816
/// <summary>

CommunityToolkit.HighPerformance/Helpers/ParallelHelper.ForEach.IInAction.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@
99

1010
namespace CommunityToolkit.HighPerformance.Helpers;
1111

12-
/// <summary>
13-
/// Helpers to work with parallel code in a highly optimized manner.
14-
/// </summary>
15-
public static partial class ParallelHelper
12+
/// <inheritdoc/>
13+
partial class ParallelHelper
1614
{
1715
/// <summary>
1816
/// Executes a specified action in an optimized parallel loop over the input data.

CommunityToolkit.HighPerformance/Helpers/ParallelHelper.ForEach.IInAction2D.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@
88

99
namespace CommunityToolkit.HighPerformance.Helpers;
1010

11-
/// <summary>
12-
/// Helpers to work with parallel code in a highly optimized manner.
13-
/// </summary>
14-
public static partial class ParallelHelper
11+
/// <inheritdoc/>
12+
partial class ParallelHelper
1513
{
1614
/// <summary>
1715
/// Executes a specified action in an optimized parallel loop over the input data.

CommunityToolkit.HighPerformance/Helpers/ParallelHelper.ForEach.IRefAction.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,8 @@
99

1010
namespace CommunityToolkit.HighPerformance.Helpers;
1111

12-
/// <summary>
13-
/// Helpers to work with parallel code in a highly optimized manner.
14-
/// </summary>
15-
public static partial class ParallelHelper
12+
/// <inheritdoc/>
13+
partial class ParallelHelper
1614
{
1715
/// <summary>
1816
/// Executes a specified action in an optimized parallel loop over the input data.

CommunityToolkit.HighPerformance/Helpers/ParallelHelper.ForEach.IRefAction2D.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@
88

99
namespace CommunityToolkit.HighPerformance.Helpers;
1010

11-
/// <summary>
12-
/// Helpers to work with parallel code in a highly optimized manner.
13-
/// </summary>
14-
public static partial class ParallelHelper
11+
/// <inheritdoc/>
12+
partial class ParallelHelper
1513
{
1614
/// <summary>
1715
/// Executes a specified action in an optimized parallel loop over the input data.

CommunityToolkit.HighPerformance/Helpers/ParallelHelper.ThrowExceptions.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@
66

77
namespace CommunityToolkit.HighPerformance.Helpers;
88

9-
/// <summary>
10-
/// Helpers to work with parallel code in a highly optimized manner.
11-
/// </summary>
12-
public static partial class ParallelHelper
9+
/// <inheritdoc/>
10+
partial class ParallelHelper
1311
{
1412
/// <summary>
1513
/// Throws an <see cref="ArgumentOutOfRangeException"/> when an invalid parameter is specified for the minimum actions per thread.

CommunityToolkit.HighPerformance/Memory/ReadOnlySpan2D{T}.Enumerator.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
namespace CommunityToolkit.HighPerformance;
1616

17-
/// <inheritdoc cref="ReadOnlySpan2D{T}"/>
18-
public readonly ref partial struct ReadOnlySpan2D<T>
17+
/// <inheritdoc/>
18+
partial struct ReadOnlySpan2D<T>
1919
{
2020
/// <summary>
2121
/// Gets an enumerable that traverses items in a specified row.

0 commit comments

Comments
 (0)