I have a C# application running in machine_1 (local PC). This application writes values to a Global Variable. I just want to read the value of the Global Variable using another C# application which is running in a different machine (machine_2) connected with the machine_1 through a network. Is this possible in C#?
Thanks in advance.
No, not a variable as such - not with a regular CLR. (It would be possible to write a VM which did share variables across the network, but it would be quite unusual.)
Instead, you'll need to establish some sort of protocol between the two machines so that one can read the current state. (Or store the state in a third machine, e.g. in a database of some kind.)
See more on this question at Stackoverflow