Skip to content

Commit e61ff7a

Browse files
committed
Added EnumValue attribute.
1 parent 272a57a commit e61ff7a

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

CSharpToJavaScript/Utils/Attributes.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,20 @@ internal class IgnoreAttribute : Attribute
88
{
99
public IgnoreAttribute() { }
1010
}
11-
1211
[AttributeUsage(AttributeTargets.All)]
1312
public class ValueAttribute : Attribute
1413
{
1514
public string Value { get; init; }
16-
public ValueAttribute(string value)
15+
public ValueAttribute(string value)
16+
{
17+
Value = value;
18+
}
19+
}
20+
[AttributeUsage(AttributeTargets.All)]
21+
public class EnumValueAttribute : Attribute
22+
{
23+
public string Value { get; init; }
24+
public EnumValueAttribute(string value)
1725
{
1826
Value = value;
1927
}

0 commit comments

Comments
 (0)