I have a C# program that uses objects from a class that has a method looking something like this:
public double TheMethod(double argument1, double argument2, ...,double argumentN)
{
//method body: do something with the arguments
//return the result
}
I would like to give the user the ability to write their own logic into the method body and then have that be used when the program is run.
It seems to me that scripting may be the way to go, but I am having trouble trying to get started. What is the best way to approach this situation?
Note: If it matters, the program would be run from within a larger main desktop application. I would like the user to be able to write their code when the application is already running through some sort of editor program. Their code would then be saved and used once they launch the program that actually uses the method.