Translate() public method

public Translate ( MethodInfo operation ) : string
operation System.Reflection.MethodInfo
return string
        /// <summary>
        /// add a function with based on the given operation
        /// </summary>
        /// <param name="operation">the operation to base this function on</param>
        /// <returns>the new function</returns>
        public ScriptFunction AddFunction(MethodInfo operation)
        {
            //translate the method info into code
            string functionCode = _language.Translate(operation);

            //add the code to the script
            AddCode(functionCode);
            //reload the script code
            ReloadCode();
            //return the new function
            return(Functions.Find(x => x.Name == operation.Name));
        }