通用列表值存储在哪里? [英] Where Generic List value Stored?

查看:68
本文介绍了通用列表值存储在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有疑问,存储arraylist或Generic array List.我在列表中存储了10条记录...这些值存储在哪里? System或???

I have Doubt, where arraylist or Generic array List are stored. I we store 10 record in list...Where that values in stored? System or ???

推荐答案

内存.

.NET中的所有对象都存储在内存中,除非您使用特定的指令将其保存在其他位置,例如File.Write或Image.Save,或(更复杂的)SQL,Session或Cookies.

因此请记住,它们不是持久的!如果您不将它们存储在一个小小的永久性物品中,它们将被遗忘.
Memory.

All objects in .NET store in memory, unless you use a specific instruction to save it somewhere else - such as File.Write, or Image.Save, or (more complex) SQL, or Session, or Cookies.

So bear in mind that they are not persistent! They will be forgotten if you do not store them somewhere a littl emore permanent.


这篇关于通用列表值存储在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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