Is it possible to call my c# code from a file? The application should be able to scan through the lines in my file and execute the code inside.
Suppose I have the following method in my application:
public void ShowMsg(String msg)
{
MessageBox.Show(msg);
}
and the line ShowMsg("Hello")
in my file.
I want my application to be able to read the code from file and in the end it should display a message box with the string "Hello". But of course what I'm trying to achieve is way more complicated than simply displaying a message box to the user.