What is the easiest way to do inter process communication in C#?

前端 未结 8 1512
礼貌的吻别
礼貌的吻别 2020-11-30 11:20

I have two C# applications and I want one of them send two integers to the other one (this doesn\'t have to be fast since it\'s invoked only once every few seconds).

相关标签:
8条回答
  • 2020-11-30 12:07

    Another way would be to imitate a named pipe. Declare a file somewhere, and read from/write to it.

    Or, if the programs get executed in sequence, you could try the clipboard...but that solution is ugly as hell and is buggy (sometimes .NET can't access the clipboard for no reason).

    0 讨论(0)
  • 2020-11-30 12:07

    For completeness, you can also to use net.pipe and WCF.

    0 讨论(0)
提交回复
热议问题