public IDebuggerCode GetCode(ILCodeKind kind) { return(debugger.Dispatcher.UI(() => { var code = frame.GetCode((dndbg.COM.CorDebug.ILCodeKind)kind); return code == null ? null : new DebuggerCode(debugger, code); })); }