Skip to content

Commit

Permalink
Merge pull request #625 from LordJZ/case/enum-member-attributes
Browse files Browse the repository at this point in the history
Fixed #619 custom attributes on enum members
  • Loading branch information
siegfriedpammer committed Jul 8, 2015
2 parents ffe1367 + a116053 commit 85a7a9b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ICSharpCode.Decompiler/Ast/AstBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,7 @@ public EntityDeclaration CreateType(TypeDefinition typeDef)
}
} else {
EnumMemberDeclaration enumMember = new EnumMemberDeclaration();
ConvertCustomAttributes(enumMember, field);
enumMember.AddAnnotation(field);
enumMember.Name = CleanName(field.Name);
long memberValue = (long)CSharpPrimitiveCast.Cast(TypeCode.Int64, field.Constant, false);
Expand Down

0 comments on commit 85a7a9b

Please sign in to comment.