System.Xml.XmlEventCache.WriteString C# (CSharp) Méthode

WriteString() public méthode

public WriteString ( string text ) : void
text string
Résultat void
        public override void WriteString(string text) {
            // Special-case single text node at the top level
            if (this.pages == null) {
                if (this.singleText == null)
                    this.singleText = text;
                else
                    this.singleText += text;
            }
            else {
                AddEvent(XmlEventType.String, text);
            }
        }

Usage Example

Exemple #1
0
 public override void WriteString(string text)
 {
     if (TextBlockCreatesWriter(text))
     {
         _wrapped.WriteString(text);
     }
     else
     {
         _eventCache.WriteString(text);
     }
 }