C#: read text file and interpret as script at runtime?

In runtime, how to read a text file (assumed error free) and interpret it as a script, i.e 1/ Create new script class from that text file
2/ Add or remove script to game objects

I think if the first can be done then the second can be done too, but how?

Check this: 1

I don’t know if this works, and how it works… But you can try.