namespace System.Xml
{
- public class XmlEntity : XmlNode
+ public class XmlEntity : XmlNode, IHasXmlChildNode
{
#region Constructors
string publicId;
string systemId;
string baseUri;
+ XmlLinkedNode lastLinkedChild;
+ bool contentAlreadySet;
#endregion
#region Properties
+ XmlLinkedNode IHasXmlChildNode.LastLinkedChild {
+ get {
+ if (lastLinkedChild != null)
+ return lastLinkedChild;
+ if (!contentAlreadySet) {
+ contentAlreadySet = true;
+ SetEntityContent ();
+ }
+ return lastLinkedChild;
+ }
+ set { lastLinkedChild = value; }
+ }
+
public override string BaseURI {
get { return baseUri; }
}
// No effect.
}
- internal void SetEntityContent ()
+ void SetEntityContent ()
{
- if (FirstChild != null)
+ if (lastLinkedChild != null)
return;
XmlDocumentType doctype = OwnerDocument.DocumentType;