public static MICommandFactory GetInstance(MIMode mode, Debugger debugger) { MICommandFactory commandFactory; switch (mode) { case MIMode.Gdb: commandFactory = new GdbMICommandyFactory(); break; case MIMode.Lldb: commandFactory = new LlldbMICommandFactory(); break; case MIMode.Clrdbg: commandFactory = new ClrdbgMICommandFactory(); break; default: throw new ArgumentException("mode"); } commandFactory._debugger = debugger; commandFactory.Mode = mode; commandFactory.Radix = 10; return(commandFactory); }
public static MICommandFactory GetInstance(MIMode mode, Debugger debugger) { MICommandFactory commandFactory; switch (mode) { case MIMode.Gdb: commandFactory = new GdbMICommandyFactory(); break; case MIMode.Lldb: commandFactory = new LlldbMICommandFactory(); break; case MIMode.Clrdbg: commandFactory = new ClrdbgMICommandFactory(); break; default: throw new ArgumentException("mode"); } commandFactory._debugger = debugger; commandFactory.Mode = mode; commandFactory.Radix = 10; return commandFactory; }