How to reflect and delete work within the country?

I am interested to know how Reflection and Remoting in.net work internally. I also heard that .net can use remote access to applications written in other languages ​​(like Java). How it works?

This is probably a big question, so the answer that briefly touches on each question is reasonable.

+3
source share
1 answer

Deletion works by intercepting calls to certain objects ( MarshalByRefObject) and, instead, an RPC call is made; in fact, the caller’s object is simply a lightweight proxy for the real object in the original AppDomain / machine / etc. Arguments and results are passed (again, taking into account MarshalByRefObject- otherwise, using BinaryFormatterfor serialization of values).

Reflection is built into the main runtime and provides access to the base type definitions. This is partly because IL under .NET languages ​​is quite expressive in terms of source code.

, , jot. , (AFAIK) . , SOA, - (SOAP POX) , , JSON " " ( # java).

+3

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


All Articles