Import class without knowing it’s name at the beginning in C#
I am trying to create a game with modding ability and i have support for scripts, but they are clean code so I need to execute them. I could import every file, but I can’t write new names to main code’s file and recompile it.
Import class without knowing it’s name at the begining in c#
I am trying to create a game with modding ability and i have support for scripts, but they are clean code so i need to execute them. I could import every file, but i can’t write new names to main code’s file and recompile it. Basicly, i just need to import other files (i guess they need to be .exe instead of .cs to be compatable with already executed programm) and create some instances of them, but how do i do that? I serached for it and found about DataTable, but it’s only for math. Can i do something with it? Like, in Python, you can easily parse strings like normal code, but how do i do this with c#?