Actually, the components that implement save \ load are of interest.

  • one
    @anunak, Try to write more detailed questions. Explain what you see the problem, how to reproduce it, etc. - Nicolas Chabanovsky

2 answers 2

No, the program state cannot be fully saved. For example, open files, locks taken, stacks of all threads - all this can be saved only deeply by system tools.

Usually, however, it is enough to save only the state of some objects, and when restarting the program, restore the rest. For this, settings are traditionally used.

    XmlSerializer , BinaryFormatter , DataContractSerializer .