I am making a scripting language but I have a serious problem.
I need to make it so you can call .NET DLLs in the language but I have found no way to do this in C#.
Does any one know how can I load and call a .NET dll programmatically? (I can not just Add reference so don’t say that)
Here’s how I did it:
where
assemblyNameandtypeNameare strings, for example:then you can call methods on your obj:
Of course, what methods you can call is defined by your interface
IYourType…