public void AddMethods(ICodedToken propOrEvent, PropEventType propEvtType, IList <MethodDef> propEvtMethods, MethodDef method) { while (true) { int index = propEvtMethods.IndexOf(method); if (index < 0) { break; } propEvtMethods.RemoveAt(index); PropEventInfos.Add(new PropEventInfo(propOrEvent, propEvtType, index)); } }
public PropEventInfo(ICodedToken propOrEvt, PropEventType propEventType, int index) { PropOrEvent = propOrEvt; PropEventType = propEventType; Index = index; }
public void AddMethods(ICodedToken propOrEvent, PropEventType propEvtType, IList<MethodDef> propEvtMethods, MethodDef method) { while (true) { int index = propEvtMethods.IndexOf(method); if (index < 0) break; propEvtMethods.RemoveAt(index); PropEventInfos.Add(new PropEventInfo(propOrEvent, propEvtType, index)); } }
public PropEventInfo(ICodedToken propOrEvt, PropEventType propEventType, int index) { this.PropOrEvent = propOrEvt; this.PropEventType = propEventType; this.Index = index; }