Imagine this simple scenario:
I created a Class-Library DLL in .NET, which has 1 class, and this class has 2 fields(with matching Get+Set Properties): - int A - int B
Now I create an Executable, called Program1, which references that DLL, and instantiates the mentioned class, and I also create a second Executable, called Program2, which references that DLL too, and instantiates the mentioned class too.
In this way, I have 2 programs: Program1 and Program2, and both will create a seperate instance of the class in the DLL.
But what If I want Program1 and Program2 to talk to 1 shared instance of that class?
How do I do it?