Browse Source

Fixed #619 custom attributes on enum members

pull/625/head
LordJZ 10 years ago
parent
commit
a116053510
  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