Пример #1
0
 public IDebuggerEvent[] GetEvents(bool checkBaseClasses)
 {
     if (!checkBaseClasses)
     {
         return(Events);
     }
     return(debugger.Dispatcher.UI(() => {
         var events = cls.FindEvents(checkBaseClasses).ToList();
         var res = new IDebuggerEvent[events.Count];
         for (int i = 0; i < res.Length; i++)
         {
             res[i] = new DebuggerEvent(debugger, events[i]);
         }
         return res;
     }));
 }
Пример #2
0
 public IDebuggerEvent[] GetEvents(string name, bool checkBaseClasses) => debugger.Dispatcher.UI(() => {
     var events = CorClass.FindEvents(name, checkBaseClasses).ToList();
     var res    = new IDebuggerEvent[events.Count];
     for (int i = 0; i < res.Length; i++)
     {
         res[i] = new DebuggerEvent(debugger, events[i]);
     }
     return(res);
 });