72 |
// Get a particular item within this node list. |
// Get a particular item within this node list. |
73 |
public override XmlNode Item(int i) |
public override XmlNode Item(int i) |
74 |
{ |
{ |
75 |
if(cached.Count > i) |
if(count > i) |
76 |
{ |
{ |
77 |
return (cached[i] as XmlNode); |
return (XmlNode)(cached[i]); |
78 |
} |
} |
79 |
Read(i-count+1); |
else if(!finished) |
80 |
return (cached[i] as XmlNode); |
{ |
81 |
|
Read(i-count+1); |
82 |
|
if(count > i) |
83 |
|
{ |
84 |
|
return (XmlNode)(cached[i]); |
85 |
|
} |
86 |
|
} |
87 |
|
|
88 |
|
return null; |
89 |
} |
} |
90 |
|
|
91 |
// Implement the "IEnumerable" interface. |
// Implement the "IEnumerable" interface. |