2010-04-06 Jb Evain <jbevain@novell.com>
[mcs.git] / class / Mono.Debugger.Soft / Mono.Debugger.Soft / Mirror.cs
blob699706ceb24afa7e5d77f8c0c677966d3d22ad60
1 using System;
3 namespace Mono.Debugger.Soft
5 public abstract class Mirror : IMirror
7 protected VirtualMachine vm;
8 protected long id; // The id used in the protocol
10 internal Mirror (VirtualMachine vm, long id) {
11 this.vm = vm;
12 this.id = id;
15 internal Mirror () {
18 public VirtualMachine VirtualMachine {
19 get {
20 return vm;
24 internal long Id {
25 get {
26 return id;
30 protected void SetVirtualMachine (VirtualMachine vm) {
31 this.vm = vm;
34 protected void CheckMirror (Mirror m) {
35 if (vm != m.VirtualMachine)
36 throw new VMMismatchException ();