string systemId;
string baseUri;
XmlLinkedNode lastLinkedChild;
+ bool contentAlreadySet;
#endregion
#region Properties
XmlLinkedNode IHasXmlChildNode.LastLinkedChild {
- get { return lastLinkedChild; }
+ get {
+ if (lastLinkedChild != null)
+ return lastLinkedChild;
+ if (!contentAlreadySet) {
+ contentAlreadySet = true;
+ SetEntityContent ();
+ }
+ return lastLinkedChild;
+ }
set { lastLinkedChild = value; }
}
// No effect.
}
- internal void SetEntityContent ()
+ void SetEntityContent ()
{
- if (FirstChild != null)
+ if (lastLinkedChild != null)
return;
XmlDocumentType doctype = OwnerDocument.DocumentType;