枚举数和无数 [英] Ienumerator and Ienumerable
本文介绍了枚举数和无数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
什么是Ienumerator和Ienumerable
What is Ienumerator and Ienumerable
推荐答案
IEnumerable是定义一个方法GetEnumerator的接口,该方法返回IEnumerator接口,从而允许对集合的只读访问.实现IEnumerable的集合可以与foreach语句一起使用.
有关实现的信息,请参考:在.NET Framework中使用IEnumerator和IEnumerable [ http://brendan.enrick.com/post/implementing-ienumerable-and-ienumerator.aspx [ ^ ]
http://codebetter.com/davidhayden/2005 /03/08/implementing-ienumerable-and-ienumerator-on-your-custom-objects/ [
IEnumerable is an interface that defines one method GetEnumerator which returns an IEnumerator interface, this in turn allows readonly access to a collection. A collection that implements IEnumerable can be used with a foreach statement.
for implementation inforamation refer:Using IEnumerator and IEnumerable in the .NET Framework[^]
http://brendan.enrick.com/post/implementing-ienumerable-and-ienumerator.aspx[^]
http://codebetter.com/davidhayden/2005/03/08/implementing-ienumerable-and-ienumerator-on-your-custom-objects/[^]
参阅此
IEnumerable和IEnumerator接口 [在.NET Framework中使用IEnumerator和IEnumerable [
See this
IEnumerable And IEnumerator interfaces[^]
Using IEnumerator and IEnumerable in the .NET Framework[^]
请参阅这些
http://stackoverflow.com/questions/619564/what-is- "-difference-between-ienumerator-and-enumerable"目标 [ ^ ]
http://stackoverflow.com/questions/558304/can-anyone-解释-ienumerable-and-ienumerator-to-me [ ^ ]
Refer these
http://stackoverflow.com/questions/619564/what-is-the-difference-between-ienumerator-and-ienumerable[^]
http://stackoverflow.com/questions/558304/can-anyone-explain-ienumerable-and-ienumerator-to-me[^]
这篇关于枚举数和无数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文