コード例 #1
0
ファイル: MethodDefCommands.cs プロジェクト: zhenren92/dnSpy
 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));
     }
 }
コード例 #2
0
ファイル: MethodDefCommands.cs プロジェクト: zhenren92/dnSpy
 public PropEventInfo(ICodedToken propOrEvt, PropEventType propEventType, int index)
 {
     PropOrEvent   = propOrEvt;
     PropEventType = propEventType;
     Index         = index;
 }
コード例 #3
0
ファイル: MethodDefCommands.cs プロジェクト: arkanoid1/dnSpy
				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));
					}
				}
コード例 #4
0
ファイル: MethodDefCommands.cs プロジェクト: arkanoid1/dnSpy
					public PropEventInfo(ICodedToken propOrEvt, PropEventType propEventType, int index) {
						this.PropOrEvent = propOrEvt;
						this.PropEventType = propEventType;
						this.Index = index;
					}
コード例 #5
0
ファイル: MethodDefCommands.cs プロジェクト: weimingtom/dnSpy
 public PropEventInfo(ICodedToken propOrEvt, PropEventType propEventType, int index)
 {
     this.PropOrEvent   = propOrEvt;
     this.PropEventType = propEventType;
     this.Index         = index;
 }
コード例 #6
0
					public PropEventInfo(ICodedToken propOrEvt, PropEventType propEventType, int index) {
						PropOrEvent = propOrEvt;
						PropEventType = propEventType;
						Index = index;
					}