windows - Can I share a variable between machines using C#? -


i have c# application running in machine_1 (local pc). application writes values global variable. want read value of global variable using c# application running in different machine (machine_2) connected machine_1 through network. possible in c#?

thanks in advance.

no, not variable such - not regular clr. (it possible write vm did share variables across network, quite unusual.)

instead, you'll need establish sort of protocol between 2 machines 1 can read current state. (or store state in third machine, e.g. in database of kind.)


Comments