IEnumerable接口如何处理? [英] what is the deal with the IEnumerable interface?

查看:52
本文介绍了IEnumerable接口如何处理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以向我解释IEnumerable接口的含义是什么.就像我尝试将List与Select或Where语句一起使用时一样,我看到此界面在VS Intelligence中弹出.

如果没有任何意义,请原谅我.

Can anyone please explain to me what''s the IEnumerable interface is all about. As when ever I try to use List with Select or Where statement, I see this interface pops up in the Intelligence of the VS.

Please pardon me if it does not make any sense.

推荐答案

就像您提问的方式一样.提出问题比确定未知位置要好得多.
顺便说一下,IEnumerator是一个旨在访问列表中每个元素的接口.每当您要访问列表的元素时,它都会在内部调用该接口.


以下链接将为您提供帮助

IEnumerable和IEnumerator接口
Like the way you ask the question.Asking a question is much better than siting unknown.
By the way, IEnumerator is an interface wich is designed to access each element of a list. whenever you want to access an element of a list it internally calls the interface.


Below link will help you

IEnumerable And IEnumerator interfaces


请参阅以下链接你可能会有一些主意
http://msdn.microsoft.com/en-us/library/system.collections. ienumerable.aspx [ ^ ]

IEnumerable和IEnumerator接口 [
see these links you may get some idea
http://msdn.microsoft.com/en-us/library/system.collections.ienumerable.aspx[^]

IEnumerable And IEnumerator interfaces[^]


IEnumerable仅仅意味着它实现了必要的功能使其可以迭代.
在这里查看:
在.NET Framework中使用IEnumerator和IEnumerable [ ^ ]

祝你好运!
IEnumerable simply means that it implemented the necessary functionality making iterating it possible.
Have a look here: Using IEnumerator and IEnumerable in the .NET Framework[^]

Good luck!


这篇关于IEnumerable接口如何处理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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