예제 #1
0
 public virtual void VisitEventDefinitionCollection(EventDefinitionCollection events)
 {
     foreach (EventDefinition eventDef in events)
     {
         VisitEventDefinition(eventDef);
     }
 }
예제 #2
0
 public void VisitEventDefinitionCollection(EventDefinitionCollection events)
 {
     foreach (EventDefinition evt in events)
     {
         AppendNode(evt.DeclaringType, evt, true);
         if (evt.AddMethod != null)
         {
             AppendNode(evt, evt.AddMethod, false);
         }
         if (evt.RemoveMethod != null)
         {
             AppendNode(evt, evt.RemoveMethod, false);
         }
     }
 }
예제 #3
0
        private EventDefinition[] GetEvents(TypeDefinition type)
        {
            ArrayList list = new ArrayList();

            EventDefinitionCollection events = type.Events;            //type.GetEvents (flags);

            foreach (EventDefinition eventDef in events)
            {
                MethodDefinition addMethod = eventDef.AddMethod;                //eventInfo.GetAddMethod (true);

                if (addMethod == null || !MustDocumentMethod(addMethod))
                {
                    continue;
                }

                list.Add(eventDef);
            }

            return((EventDefinition [])list.ToArray(typeof(EventDefinition)));
        }
예제 #4
0
 public void VisitEventDefinitionCollection(EventDefinitionCollection events)
 {
 }
예제 #5
0
 public override void VisitEventDefinitionCollection(EventDefinitionCollection events)
 {
     VisitCollection(events);
 }