public void InsertEventGlobal(string className, CNamedEvent pEvent) { if (this.FindEventStatic(className, pEvent.GetName()) == null) { if (!this.ms_eventInfosGlobal.ContainsKey(className)) { this.ms_eventInfosGlobal.Add(className, new DictionaryView <CStringID, CNamedEvent>()); } DictionaryView <CStringID, CNamedEvent> dictionaryView = this.ms_eventInfosGlobal.get_Item(className); CNamedEvent cNamedEvent = (CNamedEvent)pEvent.clone(); CStringID cStringID = new CStringID(cNamedEvent.GetName()); dictionaryView.Add(cStringID, cNamedEvent); } }
public void InsertEventGlobal(string className, CNamedEvent pEvent) { if (this.FindEventStatic(className, pEvent.GetName()) == null) { if (!this.ms_eventInfosGlobal.ContainsKey(className)) { this.ms_eventInfosGlobal.Add(className, new DictionaryView <CStringID, CNamedEvent>()); } DictionaryView <CStringID, CNamedEvent> view = this.ms_eventInfosGlobal[className]; CNamedEvent event3 = (CNamedEvent)pEvent.clone(); CStringID key = new CStringID(event3.GetName()); view.Add(key, event3); } }
private CNamedEvent findEvent(string eventName) { Agent.CTagObjectDescriptor descriptor = this.GetDescriptor(); int contextId = this.GetContextId(); CNamedEvent cNamedEvent = Agent.findNamedEventTemplate(descriptor.ms_methods, eventName, contextId); if (cNamedEvent != null) { CNamedEvent cNamedEvent2 = (CNamedEvent)cNamedEvent.clone(); CStringID key = new CStringID(eventName); this.EventInfos[key] = cNamedEvent2; return(cNamedEvent2); } return(null); }
private CNamedEvent findEvent(string eventName) { CTagObjectDescriptor descriptor = this.GetDescriptor(); int contextId = this.GetContextId(); CNamedEvent event2 = findNamedEventTemplate(descriptor.ms_methods, eventName, contextId); if (event2 != null) { CNamedEvent event3 = (CNamedEvent)event2.clone(); CStringID gid = new CStringID(eventName); this.EventInfos[gid] = event3; return(event3); } return(null); }
public void InsertEventGlobal(string className, CNamedEvent pEvent) { CNamedEvent toFind = FindEventStatic(className, pEvent.Name); if (toFind == null) { if (!ms_eventInfosGlobal.ContainsKey(className)) { ms_eventInfosGlobal.Add(className, new Dictionary <CStringID, CNamedEvent>()); } Dictionary <CStringID, CNamedEvent> events = ms_eventInfosGlobal[className]; CNamedEvent e = (CNamedEvent)pEvent.clone(); CStringID eventId = new CStringID(e.Name); events.Add(eventId, e); } }