I have a WPF application, when the app runs I need to store a variable in a shared memory. When the app is being closed and successively restart I need to get the variable previously stored. I need a simple solution, I would avoid using a text file saved in some place. If the machine is restarted I do now need to get that variable.
Any idea what are my option?