/[dotgnu-pnet]/pnetlib/System.Xml/Private/SelectNodeList.cs
ViewVC logotype

Diff of /pnetlib/System.Xml/Private/SelectNodeList.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by t3rmin4t0r, Tue Feb 22 11:21:22 2005 UTC revision 1.5 by t3rmin4t0r, Tue Feb 22 17:29:19 2005 UTC
# Line 72  internal sealed class SelectNodeList : X Line 72  internal sealed class SelectNodeList : X
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.

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26