System.Xml.XmlReader.WriteAttributeValue C# (CSharp) Method

WriteAttributeValue() private method

private WriteAttributeValue ( XmlWriter xtw ) : void
xtw XmlWriter
return void
        private void WriteAttributeValue(XmlWriter xtw)
        {
            string attrName = this.Name;
            while (ReadAttributeValue())
            {
                if (this.NodeType == XmlNodeType.EntityReference)
                {
                    xtw.WriteEntityRef(this.Name);
                }
                else
                {
                    xtw.WriteString(this.Value);
                }
            }
            this.MoveToAttribute(attrName);
        }