Skip to content

Commit e6b4ea3

Browse files
committed
Fix partial types in Diagnostics package
1 parent 5309963 commit e6b4ea3

20 files changed

+53
-107
lines changed

CommunityToolkit.Diagnostics/Extensions/ValueTypeExtensions.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ public static class ValueTypeExtensions
1818
/// </summary>
1919
private static ReadOnlySpan<byte> HexCharactersTable => new[]
2020
{
21-
(byte)'0', (byte)'1', (byte)'2', (byte)'3',
22-
(byte)'4', (byte)'5', (byte)'6', (byte)'7',
23-
(byte)'8', (byte)'9', (byte)'A', (byte)'B',
24-
(byte)'C', (byte)'D', (byte)'E', (byte)'F'
25-
};
21+
(byte)'0', (byte)'1', (byte)'2', (byte)'3',
22+
(byte)'4', (byte)'5', (byte)'6', (byte)'7',
23+
(byte)'8', (byte)'9', (byte)'A', (byte)'B',
24+
(byte)'C', (byte)'D', (byte)'E', (byte)'F'
25+
};
2626

2727
/// <summary>
2828
/// Returns a hexadecimal <see cref="string"/> representation of a given <typeparamref name="T"/> value, left-padded and ordered as big-endian.

CommunityToolkit.Diagnostics/Generated/Guard.Collection.g.cs

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

1212
namespace CommunityToolkit.Diagnostics
1313
{
14-
/// <summary>
15-
/// Helper methods to verify conditions when running code.
16-
/// </summary>
17-
public static partial class Guard
14+
/// <inheritdoc/>
15+
partial class Guard
1816
{
1917
/// <summary>
2018
/// Asserts that the input <see cref="Span{T}"/> instance must be empty.

CommunityToolkit.Diagnostics/Generated/Guard.Collection.tt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ using System.Runtime.CompilerServices;
88

99
namespace CommunityToolkit.Diagnostics
1010
{
11-
/// <summary>
12-
/// Helper methods to verify conditions when running code.
13-
/// </summary>
14-
public static partial class Guard
11+
/// <inheritdoc/>
12+
partial class Guard
1513
{
1614
<#
1715
GenerateTextForItems(EnumerableTypes, item =>

CommunityToolkit.Diagnostics/Generated/Guard.Comparable.Numeric.g.cs

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

1111
namespace CommunityToolkit.Diagnostics
1212
{
13-
/// <summary>
14-
/// Helper methods to verify conditions when running code.
15-
/// </summary>
16-
public static partial class Guard
13+
/// <inheritdoc/>
14+
partial class Guard
1715
{
1816
/// <summary>
1917
/// Asserts that the input value must be equal to a specified value.

CommunityToolkit.Diagnostics/Generated/Guard.Comparable.Numeric.tt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@ using System.Runtime.CompilerServices;
77

88
namespace CommunityToolkit.Diagnostics
99
{
10-
/// <summary>
11-
/// Helper methods to verify conditions when running code.
12-
/// </summary>
13-
public static partial class Guard
10+
/// <inheritdoc/>
11+
partial class Guard
1412
{
1513
<#
1614
GenerateTextForItems(NumericTypes, typeInfo =>

CommunityToolkit.Diagnostics/Generated/ThrowHelper.Collection.g.cs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,11 @@
1111

1212
namespace CommunityToolkit.Diagnostics
1313
{
14-
/// <summary>
15-
/// Helper methods to verify conditions when running code.
16-
/// </summary>
17-
public static partial class Guard
14+
/// <inheritdoc/>
15+
partial class Guard
1816
{
19-
/// <summary>
20-
/// Helper methods to efficiently throw exceptions.
21-
/// </summary>
22-
private static partial class ThrowHelper
17+
/// <inheritdoc/>
18+
partial class ThrowHelper
2319
{
2420
/// <summary>
2521
/// Throws an <see cref="ArgumentException"/> when <see cref="Guard.IsEmpty{T}(T[],string)"/> (or an overload) fails.

CommunityToolkit.Diagnostics/Generated/ThrowHelper.Collection.tt

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,11 @@ using System.Diagnostics.CodeAnalysis;
88

99
namespace CommunityToolkit.Diagnostics
1010
{
11-
/// <summary>
12-
/// Helper methods to verify conditions when running code.
13-
/// </summary>
14-
public static partial class Guard
11+
/// <inheritdoc/>
12+
partial class Guard
1513
{
16-
/// <summary>
17-
/// Helper methods to efficiently throw exceptions.
18-
/// </summary>
19-
private static partial class ThrowHelper
14+
/// <inheritdoc/>
15+
partial class ThrowHelper
2016
{
2117
<#
2218
GenerateTextForItems(EnumerableTypes, item =>

CommunityToolkit.Diagnostics/Guard.Comparable.Generic.cs

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

88
namespace CommunityToolkit.Diagnostics;
99

10-
/// <summary>
11-
/// Helper methods to verify conditions when running code.
12-
/// </summary>
13-
public static partial class Guard
10+
/// <inheritdoc/>
11+
partial class Guard
1412
{
1513
/// <summary>
1614
/// Asserts that the input value is <see langword="default"/>.

CommunityToolkit.Diagnostics/Guard.Comparable.Numeric.cs

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

88
namespace CommunityToolkit.Diagnostics;
99

10-
/// <summary>
11-
/// Helper methods to verify conditions when running code.
12-
/// </summary>
13-
public static partial class Guard
10+
/// <inheritdoc/>
11+
partial class Guard
1412
{
1513
/// <summary>
1614
/// Asserts that the input value must be within a given distance from a specified value.

CommunityToolkit.Diagnostics/Guard.IO.cs

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

99
namespace CommunityToolkit.Diagnostics;
1010

11-
/// <summary>
12-
/// Helper methods to verify conditions when running code.
13-
/// </summary>
14-
public static partial class Guard
11+
/// <inheritdoc/>
12+
partial class Guard
1513
{
1614
/// <summary>
1715
/// Asserts that the input <see cref="Stream"/> instance must support reading.

0 commit comments

Comments
 (0)