public Interpreter RetrieveInterpreter(Interpreter terp) { try { IInterpreter terps = (IInterpreter)GetService(typeof(IInterpreter).Name); Interpreter getTerp = terps.GetInterpreter(terp); terp = getTerp; } catch (ImplementationNotFoundException) { throw new Exception("Submission failed. Try again."); } return(terp); }
public String Interprete(IInterpreter interpreter) { return(interpreter.GetInterpreter(MainComponent)); }