상속: XObjectWrapper, IXmlDeclaration
예제 #1
0
        public override IXmlNode AppendChild(IXmlNode newChild)
        {
            XDeclarationWrapper wrapper = newChild as XDeclarationWrapper;

            if (wrapper != null)
            {
                this.Document.Declaration = wrapper.Declaration;
                return(wrapper);
            }
            return(base.AppendChild(newChild));
        }
예제 #2
0
        public override IXmlNode AppendChild(IXmlNode newChild)
        {
            XDeclarationWrapper xDeclarationWrapper = newChild as XDeclarationWrapper;

            if (xDeclarationWrapper == null)
            {
                return(base.AppendChild(newChild));
            }
            this.Document.Declaration = xDeclarationWrapper.Declaration;
            return(xDeclarationWrapper);
        }
예제 #3
0
        public override IXmlNode AppendChild(IXmlNode newChild)
        {
            XDeclarationWrapper declarationWrapper = newChild as XDeclarationWrapper;

            if (declarationWrapper != null)
            {
                Document.Declaration = declarationWrapper.Declaration;
                return(declarationWrapper);
            }
            else
            {
                return(base.AppendChild(newChild));
            }
        }