Skip to content

Commit 21da339

Browse files
authored
chore: allow to set ParamsAttribute values from derived class (#2716)
1 parent 30c7301 commit 21da339

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BenchmarkDotNet.Annotations/Attributes/ParamsAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace BenchmarkDotNet.Attributes
55
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property)]
66
public class ParamsAttribute : PriorityAttribute
77
{
8-
public object?[] Values { get; }
8+
public object?[] Values { get; protected set; }
99

1010
// CLS-Compliant Code requires a constructor without an array in the argument list
1111
public ParamsAttribute() => Values = new object[0];

0 commit comments

Comments
 (0)