src/sys/dotnet/perwapi/PERWAPI.cs
/// <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>
Add an event to this class
Add an event to this class
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;
        }
public Event AddEvent ( string name , Type eType ) { Event e = ( Event ) FindFeature ( name , events ) ; if ( e != null ) throw new DescriptorException ( " " + e . NameString ( ) ) ; e = new Event ( name , eType , this ) ; events . Add ( e ) ; return e ; }
Add an event to this class
Add an event to this class
a descriptor for this new event
a descriptor for this new event
name
string
None
eType
Type
None