public virtual void VisitEvent(Event evnt) { if (evnt == null) return; this.VisitAttributeList(evnt.Attributes); this.VisitTypeReference(evnt.HandlerType); }
public virtual Event VisitEvent(Event evnt){ if (evnt == null) return null; evnt.Attributes = this.VisitAttributeList(evnt.Attributes); evnt.HandlerType = this.VisitTypeReference(evnt.HandlerType); return evnt; }
public override Event VisitEvent(Event evnt) { if (evnt == null) return null; Event dup = (Event)this.DuplicateFor[evnt.UniqueKey]; if (dup != null) return dup; this.DuplicateFor[evnt.UniqueKey] = dup = (Event)evnt.Clone(); #if !NoXml if (this.CopyDocumentation) dup.Documentation = evnt.Documentation; #endif dup.HandlerAdder = this.VisitMethod(evnt.HandlerAdder); dup.HandlerCaller = this.VisitMethod(evnt.HandlerCaller); dup.HandlerRemover = this.VisitMethod(evnt.HandlerRemover); dup.OtherMethods = this.VisitMethodList(evnt.OtherMethods); dup.DeclaringType = this.TargetType; return base.VisitEvent(dup); }