Skip to content

Commit d2568f2

Browse files
committed
Add [StackTraceHidden] to Guard.ThrowHelper type
1 parent 78c381f commit d2568f2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CommunityToolkit.Diagnostics/Internals/Guard.ThrowHelper.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// See the LICENSE file in the project root for more information.
44

55
using System;
6+
using System.Diagnostics;
67
using System.Diagnostics.CodeAnalysis;
78

89
namespace CommunityToolkit.Diagnostics;
@@ -15,6 +16,7 @@ public static partial class Guard
1516
/// <summary>
1617
/// Helper methods to efficiently throw exceptions.
1718
/// </summary>
19+
[StackTraceHidden]
1820
private static partial class ThrowHelper
1921
{
2022
/// <summary>

0 commit comments

Comments
 (0)