System.Xml.XmlBaseWriter.WriteSurrogateCharEntity C# (CSharp) Méthode

WriteSurrogateCharEntity() public méthode

public WriteSurrogateCharEntity ( char lowChar, char highChar ) : void
lowChar char
highChar char
Résultat void
        public override void WriteSurrogateCharEntity(char lowChar, char highChar)
        {
            if (IsClosed)
                ThrowClosed();

            SurrogateChar ch = new SurrogateChar(lowChar, highChar);

            if (_attributeValue != null)
            {
                char[] chars = new char[2] { highChar, lowChar };
                WriteAttributeText(new string(chars));
            }

            if (!_isXmlnsAttribute)
            {
                StartContent();
                FlushBase64();
                _writer.WriteCharEntity(ch.Char);
                EndContent();
            }
        }