public IDebuggerField[] GetFields(bool checkBaseClasses) { if (!checkBaseClasses) { return(Fields); } return(debugger.Dispatcher.UI(() => { var fields = cls.FindFields(checkBaseClasses).ToList(); var res = new IDebuggerField[fields.Count]; for (int i = 0; i < res.Length; i++) { res[i] = new DebuggerField(debugger, fields[i]); } return res; })); }
public IDebuggerField[] GetFields(string name, bool checkBaseClasses) => debugger.Dispatcher.UI(() => { var fields = CorClass.FindFields(name, checkBaseClasses).ToList(); var res = new IDebuggerField[fields.Count]; for (int i = 0; i < res.Length; i++) { res[i] = new DebuggerField(debugger, fields[i]); } return(res); });