public IDebuggerValue[] GetLocals(ILCodeKind kind) { return(debugger.Dispatcher.UI(() => { var list = new List <IDebuggerValue>(); foreach (var v in frame.GetILLocals((dndbg.COM.CorDebug.ILCodeKind)kind)) { list.Add(new DebuggerValue(debugger, v)); } return list.ToArray(); })); }