コード例 #1
0
 public void SetUnderlyingStream(HexBufferStream stream, DbgProcess process)
 {
     if (Process == process && DebuggerHexBufferStream.UnderlyingStream == stream)
     {
         return;
     }
     Process = process;
     DebuggerHexBufferStream.UnderlyingStream = stream;
     UnderlyingStreamChanged?.Invoke(this, EventArgs.Empty);
     UnderlyingProcessChanged?.Invoke(this, EventArgs.Empty);
 }
コード例 #2
0
 void SetUnderlyingStreamCore(HexBufferStream newStream)
 {
     if (stream == newStream)
     {
         return;
     }
     UnregisterEvents();
     stream?.Dispose();
     stream = newStream;
     RegisterEvents();
     InvalidateAll();
     UnderlyingStreamChanged?.Invoke(this, EventArgs.Empty);
 }
コード例 #3
0
ファイル: MemoryVM.cs プロジェクト: idkwim/dnSpy
 void DebuggerStream_UnderlyingStreamChanged(object sender, EventArgs e) => UnderlyingStreamChanged?.Invoke(this, EventArgs.Empty);