保存内存以备下次使用 [英] Saving memory for next use

查看:47
本文介绍了保存内存以备下次使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一种方法可以在下次程序运行时保存变量?
我可以将字符串和整数保存在文本文件中,但是如何保存例如类变量?

Is there a way to save variables for the next time the program runs?
i can save strings and ints in a text file but how do I save for example a class variable ?

推荐答案

请参阅以下内容

See the following

https://msdn.microsoft.com/zh-CN/library/ms973893.aspx

https://msdn.microsoft.com/en-us/library/ms973893.aspx

或者取决于变量类型,您可以将其存储在项目的设置中.

Or dependent on the variable type, you could store it in Setting of the project.


这篇关于保存内存以备下次使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆