Subscribe to Subscribers
Talk to Webmaster Tony John

Online Members

Raj.Trivedi
More...


Forums » .NET » ASP.NET »

IEnumerable


Posted Date: 17 Jun 2010      Posted By:: Gourav     Member Level: Silver    Member Rank: 2292     Points: 1   Responses: 2



What is IEnumerable and IEnumerator ???
If any one know please describe ....
Thanks....




Responses

#517729    Author: Jai      Member Level: Gold      Member Rank: 141     Date: 17/Jun/2010   Rating: 2 out of 52 out of 5     Points: 2

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.

Definition

IEnumerable

public IEnumerator GetEnumerator();

IEnumerator

public object Current;
public void Reset();
public bool MoveNext();



 
#517758    Author: rajesh kumar parbat      Member Level: Gold      Member Rank: 83     Date: 17/Jun/2010   Rating: 2 out of 52 out of 5     Points: 2

Hi,

Must Read this link
http://www.codeproject.com/KB/cs/csenumerators.aspx

Cheers!!!!

Rajesh Kumar Parbat
(Mentor,Editor,MVM)



 
Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.



Next : How to hode querystring data when page redirecting
Previous : How is posible Multiple records update on single click
Return to Discussion Forum
Post New Message
Category:

Related Messages



Follow us on Twitter: https://twitter.com/dotnetspider

Active Members
TodayLast 7 Daysmore...

Awards & Gifts
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
2005 - 2012 All Rights Reserved.
.NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
Articles, tutorials and all other content offered here is for educational purpose only.
We are not associated with Microsoft or its partners.