I am Omer, I signed up, so it looks like I'm a different user.
Regarding what Damien_The_Unbeliever said, let me describe what I usually want to do, so you can direct me to a better solution for this case.
I created a nice application. This application has a graphical interface. I want to add another way to manage this application, which will be associated with providing an API for it - methods and properties that other applications can use to manage my application.
And I plan to do the following: Create a DLL with a static class, put the core of my application in this class, and then the GUI and, possibly, all other applications, use this class.
note that this class will contain not only data that can be saved, but also links to "live" objects (i.e. open collaboration ports, etc., etc.), therefore storage on disk, and reading from it would not be a good solution here. I need this 1 static class to be accessible from all the applications that they want, and that they all get the same static class.
So, I need this class to be static, and I need the library to be βstaticβ. (There is no such thing in .NET as a "static library", I know. Please note that I am not talking about a static library, as in C ++, there is something else. I am talking about a DLL that creates only one times, for all applications that use it).
Omer
source share