I'm new in programing in WPF and I'm working on an application that uses AvalonEdit to make a script and get a string like this:
"Task1Init
Do Function1 (Argument 1)
Do Function2 (Argument 2)
Do Function3 (Argument 3)
End"
Then I modify the string and get a Method like this:
"public void Task1(){
Function1(A1);
Function2(A2);
Function3(A3);
}"
In this case all the functions are defined in a file AviliableFunctions.cs.
If I want to Run the Task1(), What will be the best way to convert the String into C# Code?, I have been searching and found the tool roslyn, but I'm not sure if it can be used to do this.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.