private void WriteCustomAttributeFields(CustomAttribute attribute) { V_0 = attribute.get_Fields().GetEnumerator(); try { while (V_0.MoveNext()) { V_1 = new IntermediateLanguageAttributeWriter.u003cu003ec__DisplayClass19_0(); V_1.field = V_0.get_Current(); this.WriteKeyword("field"); this.WriteSpace(); V_7 = V_1.field.get_Argument(); V_2 = V_7.get_Type().Resolve(); if (V_1.field.get_Argument().get_Type().get_IsPrimitive() || String.op_Equality(V_1.field.get_Argument().get_Type().get_FullName(), "System.String")) { V_3 = 3; } else { V_3 = 2; } V_7 = V_1.field.get_Argument(); V_4 = V_7.get_Type(); if (V_2 == null) { V_7 = V_1.field.get_Argument(); stackVariable39 = V_7.get_Type().GetFriendlyFullName(this.get_Language()); V_7 = V_1.field.get_Argument(); this.WriteNotResolvedReference(stackVariable39, V_7.get_Type(), "Enum keyword might be missing. Please, locate the assembly where the type is defined."); } else { if (!V_2.get_IsEnum()) { V_7 = V_1.field.get_Argument(); this.WriteType(V_7.get_Type(), V_3); } else { V_4 = this.GetEnumerationUnderlayingType(V_2); this.WriteKeyword("enum"); this.WriteSpace(); V_7 = V_1.field.get_Argument(); this.WriteType(V_7.get_Type(), V_3); V_3 = 3; } } this.WriteSpace(); V_5 = null; V_6 = attribute.get_AttributeType().Resolve(); if (V_6 != null) { V_5 = V_6.get_Fields().First <FieldDefinition>(new Func <FieldDefinition, bool>(V_1.u003cWriteCustomAttributeFieldsu003eb__0)); } this.WriteReference(V_1.field.get_Name(), V_5); this.WriteSpace(); this.Write("="); this.WriteSpace(); this.WriteType(V_4, V_3); this.Write("("); V_7 = V_1.field.get_Argument(); this.Write(V_7.get_Value().ToString()); this.Write(")"); this.WriteLine(); } } finally { V_0.Dispose(); } return; }