什么是C#中的内存中集合? [英] What is an in-memory collection in C# ?

查看:75
本文介绍了什么是C#中的内存中集合?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在浏览IEnumerable和IQueryable之间的区别,在那里我看到了内存中的术语集合。有人可以帮我这个吗?



任何链接都会很明显



我是什么尝试过:



谷歌搜索内存中的集合

I was going through the difference between IEnumerable and IQueryable where I saw the term in-memory collection. Can someone help me with the this ?

Any links will be appreciable

What I have tried:

Googling in-memory collections

推荐答案

内存中的集合就是这样:一组对象保存在内存中,而不是通过硬盘文件,数据库服务器或类似文件访问。

所有标准C#集合都在内存中:List< T>,Queue< T>,Stack< T>,DataTable,DataSet,甚至ArrayList和数组都是内存中的集合。 DataReader不是:它保存在服务器上并逐行获取(缓冲除外)。
An in-memory collection is just that: a collection of objects that is kept in memory, rather than being accessed via a hard disk file, or a DB server, or similar.
All of the standard C# collections are in-memory: List<T>, Queue<T>, Stack<T>, DataTable, DataSet, even ArrayList and arrays are all in-memory collections. DataReader isn't: it's held at the Server and fetched row-by-row (buffering excepted).


这篇关于什么是C#中的内存中集合?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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