protected virtual void Visit(CustomAttribute customAttribute, Context context) { if (customAttribute.Constructor != null) { Visit(customAttribute.Constructor, context.AttributeConstructor(customAttribute)); } if (customAttribute.AttributeType != null) { VisitTypeReference(customAttribute.AttributeType, context.AttributeType(customAttribute)); } foreach (var customAttributeArgument in customAttribute.ConstructorArguments) { Visit(customAttributeArgument, context.AttributeArgument(customAttribute)); } foreach (var fieldArgument in customAttribute.Fields) { Visit(fieldArgument, context.AttributeArgument(customAttribute)); } foreach (var propertyArgument in customAttribute.Properties) { Visit(propertyArgument, context.AttributeArgument(customAttribute)); } }
protected virtual void Visit(Mono.Cecil.CustomAttribute customAttribute, Context context) { if (customAttribute.Constructor != null) { this.Visit(customAttribute.Constructor, context.AttributeConstructor(customAttribute)); } if (customAttribute.AttributeType != null) { this.VisitTypeReference(customAttribute.AttributeType, context.AttributeType(customAttribute)); } foreach (CustomAttributeArgument argument in customAttribute.ConstructorArguments) { this.Visit(argument, context.AttributeArgument(customAttribute)); } foreach (Mono.Cecil.CustomAttributeNamedArgument argument2 in customAttribute.Fields) { this.Visit(argument2, context.AttributeArgument(customAttribute)); } foreach (Mono.Cecil.CustomAttributeNamedArgument argument3 in customAttribute.Properties) { this.Visit(argument3, context.AttributeArgument(customAttribute)); } }