By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,896 Members | 2,002 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,896 IT Pros & Developers. It's quick & easy.

Repost from csharp.general: Confused about System.Collections.IEnumerator

P: n/a
Hi all,
(Hopefully someone can answer this!)

Is it true that in *all* interfaces, the body of the defined functions
is missing, creating a level of abstraction for the functions, such as:
interface IComparable
{
int CompareTo(object obj);

}
??

If so, how does the following code work?
public class DbElementEnumerator :
System.Collections.IEnumerator
{
private IEnumerator m_RootEleEnumerator;
// other members removed
void System.Collections.IEnumerator.Reset()
{
m_RootEleEnumerator.Reset();
if (m_RootEleEnumerator.MoveNext())
{
m_RootEle =
(DbElement)m_RootEleEnumerator.Current;
// etc. etc.
How can the call to Reset(), MoveNext() work if the interface is
abstract?
TIA
Paul

Sep 27 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.