{
#region Fields
- private XmlLinkedNode lastChild;
+ private XmlLinkedNode lastLinkedChild;
#endregion
get { return false; }
}
- internal override XmlLinkedNode LastLinkedChild
- {
+ internal override XmlLinkedNode LastLinkedChild {
get {
- return lastChild;
+ return lastLinkedChild;
}
- /// set'er Should only be called by XmlNode.AppendChild().
- set
- {
- // This is our special case for clearing out all children.
- // XmlNode.RemoveAll() will call this method passing in
- // a null node.
- if (value == null)
- {
- // This should allow the GC to collect up our circular list
- // that we no longer have a reference to.
- lastChild = null;
- return;
- }
- if (LastChild == null)
- {
- lastChild = value;
- LastLinkedChild.NextLinkedSibling = null;
- }
-
- value.NextLinkedSibling = LastLinkedChild.NextLinkedSibling;
- LastLinkedChild.NextLinkedSibling = value;
-
- SetParentNode(this);
+ set {
+ lastLinkedChild = value;
}
}
- public override string LocalName
- {
+ public override string LocalName {
get { return "#document"; }
}