From a1160535101544b86ce01e61bdbea5a4a5f4c755 Mon Sep 17 00:00:00 2001 From: LordJZ Date: Mon, 6 Jul 2015 20:17:17 +0300 Subject: [PATCH] Fixed #619 custom attributes on enum members --- ICSharpCode.Decompiler/Ast/AstBuilder.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/ICSharpCode.Decompiler/Ast/AstBuilder.cs b/ICSharpCode.Decompiler/Ast/AstBuilder.cs index 779e4ecf2e..b623072966 100644 --- a/ICSharpCode.Decompiler/Ast/AstBuilder.cs +++ b/ICSharpCode.Decompiler/Ast/AstBuilder.cs @@ -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);