Descriptor for an event
Наследование: Feature
Пример #1
0
 internal void AddEvent(Event ev)
 {
     if (ev == null) return;
     ev.SetParent(this);
     events.Add(ev);
 }
Пример #2
0
 internal static void Read(PEReader buff, TableRow[] events)
 {
     for (int i=0; i < events.Length; i++)
         events[i] = new Event(buff);
 }
Пример #3
0
 /// <summary>
 /// Add an event to this class
 /// </summary>
 /// <param name="name">event name</param>
 /// <param name="eType">event type</param>
 /// <returns>a descriptor for this new event</returns>
 public Event AddEvent(string name, Type eType)
 {
     Event e = (Event)FindFeature(name,events);
     if (e != null)
         throw new DescriptorException("Event " + e.NameString());
     e = new Event(name,eType,this);
     events.Add(e);
     return e;
 }