Skip to content

Commit c721010

Browse files
committed
Force use of ExperimentalAttribute with resource key
1 parent b962286 commit c721010

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Rubberduck.Parsing/Common/ExperimentalAttribute.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,15 @@ namespace Rubberduck.Parsing.Common
55
[AttributeUsage(AttributeTargets.Class)]
66
public class ExperimentalAttribute : Attribute
77
{
8-
public ExperimentalAttribute() : this(string.Empty)
9-
{
10-
}
11-
128
public ExperimentalAttribute(string resource)
139
{
10+
Resource = resource;
1411
}
12+
13+
/// <summary>
14+
/// Resource key to look up in <see cref="Rubberduck.Resources.Experimental.ExperimentalNames"/>.
15+
/// Also serves as a unique identifier to distinguish experimental features from one another.
16+
/// </summary>
17+
public string Resource { get; }
1518
}
1619
}

0 commit comments

Comments
 (0)