Browse Source

Merge pull request #625 from LordJZ/case/enum-member-attributes

Fixed #619 custom attributes on enum members
pull/626/merge
Siegfried Pammer 11 years ago
parent
commit
85a7a9bb34
  1. 1
      ICSharpCode.Decompiler/Ast/AstBuilder.cs

1
ICSharpCode.Decompiler/Ast/AstBuilder.cs

@ -331,6 +331,7 @@ namespace ICSharpCode.Decompiler.Ast @@ -331,6 +331,7 @@ namespace ICSharpCode.Decompiler.Ast
}
} 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);

Loading…
Cancel
Save