protected virtual void Visit(EventDefinition eventDefinition, Context context) { this.VisitTypeReference(eventDefinition.EventType, context.ReturnType(eventDefinition)); foreach (Mono.Cecil.CustomAttribute attribute in eventDefinition.CustomAttributes) { this.Visit(attribute, context.Attribute(eventDefinition)); } this.Visit(eventDefinition.AddMethod, context.EventAdder(eventDefinition)); this.Visit(eventDefinition.RemoveMethod, context.EventRemover(eventDefinition)); }
protected virtual void Visit(EventDefinition eventDefinition, Context context) { VisitTypeReference(eventDefinition.EventType, context.ReturnType(eventDefinition)); foreach (var customAttribute in eventDefinition.CustomAttributes) { Visit(customAttribute, context.Attribute(eventDefinition)); } Visit(eventDefinition.AddMethod, context.EventAdder(eventDefinition)); Visit(eventDefinition.RemoveMethod, context.EventRemover(eventDefinition)); }