I'm developing a Windows Form application in C #, and this application can run simultaneously on the same computer multiple times.
And I'm not sure if I should use static objects (classes, functions, variables, etc.) because they might be given different values at program startup.
So I would like to know if the various instances of the same program will share the same static variable information?
Example:
- There is a static A variable;
- When the first instance is opened it gets 1
- When the second instance is opened it gets 2
In the first instance the variable A will remain 1 ?