mirror of https://github.com/dahall/Vanara.git
Added backwards compatible StackTraceHiddenAttribute for pre-NET 6.0
parent
dc62d8c478
commit
01c31c3638
|
@ -0,0 +1,13 @@
|
|||
#if !(NET6_0_OR_GREATER)
|
||||
namespace System.Diagnostics;
|
||||
|
||||
/// <summary>
|
||||
/// Types and Methods attributed with StackTraceHidden will be omitted from the stack trace text shown in StackTrace.ToString() and Exception.StackTrace
|
||||
/// </summary>
|
||||
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Constructor | AttributeTargets.Method, Inherited = false)]
|
||||
public sealed class StackTraceHiddenAttribute : Attribute
|
||||
{
|
||||
/// <summary>Initializes a new instance of the <see cref="StackTraceHiddenAttribute"/> class.</summary>
|
||||
public StackTraceHiddenAttribute() { }
|
||||
}
|
||||
#endif
|
Loading…
Reference in New Issue