projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2002-12-21 Atsushi Enomoto <ginga@kit.hi-ho.ne.jp>
[mono.git]
/
mcs
/
class
/
System.XML
/
System.Xml
/
XmlLinkedNode.cs
diff --git
a/mcs/class/System.XML/System.Xml/XmlLinkedNode.cs
b/mcs/class/System.XML/System.Xml/XmlLinkedNode.cs
index 090bedcf6b924e0235ad7635a195c3284cbbc1e3..cc6be542fd446b6cd69324dfa922a9fbb33b7789 100644
(file)
--- a/
mcs/class/System.XML/System.Xml/XmlLinkedNode.cs
+++ b/
mcs/class/System.XML/System.Xml/XmlLinkedNode.cs
@@
-7,7
+7,7
@@
//
// (C) 2002 Jason Diamond, Kral Ferch
//
//
// (C) 2002 Jason Diamond, Kral Ferch
//
-
\r
+
using System;
namespace System.Xml
using System;
namespace System.Xml
@@
-17,6
+17,7
@@
namespace System.Xml
#region Fields
XmlLinkedNode nextSibling;
#region Fields
XmlLinkedNode nextSibling;
+ XmlLinkedNode lastLinkedChild;
#endregion
#endregion
@@
-30,7
+31,10
@@
namespace System.Xml
public override XmlNode NextSibling
{
get {
public override XmlNode NextSibling
{
get {
- if (Object.ReferenceEquals(nextSibling, ParentNode.LastLinkedChild.NextLinkedSibling) == false) {
+ if(ParentNode == null) {
+ return null;
+ }
+ else if (Object.ReferenceEquals(nextSibling, ParentNode.LastLinkedChild.NextLinkedSibling) == false) {
return nextSibling;
}
else {
return nextSibling;
}
else {
@@
-61,6
+65,13
@@
namespace System.Xml
}
}
}
}
+ // copied this way from XmlElement
+ internal override XmlLinkedNode LastLinkedChild
+ {
+ get { return lastLinkedChild; }
+ set { lastLinkedChild = value; }
+ }
+
#endregion
}
}
#endregion
}
}