Exemple #1
0
        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);
        }
Exemple #2
0
 public String Interprete(IInterpreter interpreter)
 {
     return(interpreter.GetInterpreter(MainComponent));
 }