Skip to content

Commit 71df67e

Browse files
committed
disable compiler warnings in stub StringSyntaxAttribute for netstandard2.0
1 parent 4b9ee7f commit 71df67e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
#if !NET7_0_OR_GREATER
22

3+
// ReSharper disable once CheckNamespace
34
namespace System.Diagnostics.CodeAnalysis;
45

56
/// <summary>
67
/// Stub
78
/// </summary>
89
public sealed class StringSyntaxAttribute : Attribute
910
{
11+
// ReSharper disable once InconsistentNaming
12+
#pragma warning disable IDE1006
1013
public const string CompositeFormat = nameof(CompositeFormat);
14+
#pragma warning restore IDE1006
1115

16+
#pragma warning disable IDE0060
1217
public StringSyntaxAttribute(string syntax)
13-
{
14-
}
15-
18+
{ }
19+
#pragma warning restore IDE0060
1620
}
1721
#endif

0 commit comments

Comments
 (0)