Skip to content

Commit b100d4b

Browse files
committed
Add 'ConstantExpectedAttribute' type
1 parent 06e5008 commit b100d4b

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// <auto-generated/>
2+
#pragma warning disable
3+
#nullable enable annotations
4+
5+
// Licensed to the .NET Foundation under one or more agreements.
6+
// The .NET Foundation licenses this file to you under the MIT license.
7+
8+
namespace System.Diagnostics.CodeAnalysis
9+
{
10+
/// <summary>
11+
/// Indicates that the specified method parameter expects a constant.
12+
/// </summary>
13+
/// <remarks>
14+
/// This can be used to inform tooling that a constant should be used as an argument for the annotated parameter.
15+
/// </remarks>
16+
[global::System.AttributeUsage(AttributeTargets.Parameter, Inherited = false)]
17+
[global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
18+
internal sealed class ConstantExpectedAttribute : global::System.Attribute
19+
{
20+
/// <summary>
21+
/// Indicates the minimum bound of the expected constant, inclusive.
22+
/// </summary>
23+
public object? Min { get; set; }
24+
25+
/// <summary>
26+
/// Indicates the maximum bound of the expected constant, inclusive.
27+
/// </summary>
28+
public object? Max { get; set; }
29+
}
30+
}

0 commit comments

Comments
 (0)