AddCode() public method

adds the given code to the end of the script
public AddCode ( string functionCode ) : void
functionCode string the code to be added
return void
		public ScriptFunction AddFunction(Script script, MethodInfo operation)
		{
			//get the script code
			//get the function code
			string functionCode = Translate(operation);
			//add function code to script code
			script.AddCode(functionCode);
			//return the function
			return script.Functions.Find(x => x.Name == operation.Name);
		}
        public ScriptFunction AddFunction(Script script, MethodInfo operation)
        {
            //get the script code
            //get the function code
            string functionCode = Translate(operation);

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