Is it possible to get the MSIL delegate from C #?

Just out of curiosity ... is it possible to programmatically get an MSIL delegate? I am curious because I played with the idea of ​​a distributed computing system where you can just write programs, and the program itself will be distributed to each disparate node where the work will take place. I know that you could do this by copying the actual assembly over the network and loading it into appdomain, but I think it would be very interesting to have a simpler model to work with.

thanks!

+3
source share
3 answers

How to copy an assembly to another machine and upload it to appdomain is more complicated than the solution you are thinking about?

+4
source

- , CodeDom, - ( ), (s )? Assembly.Load()?

, , ! , - ...
+1

You can use Reflector or ILDASM (MSIL Disassembler) to get the IL of any member in any .NET assembly.

0
source

Source: https://habr.com/ru/post/1705795/


All Articles