示例#1
0
 public void Write(
     StringBuilder strBuilder,
     DocPosition docPos,
     AncestralNamespaceContextManager anc)
 {
     if (!this.IsInNodeSet)
     {
         return;
     }
     strBuilder.Append(Exml.EscapeTextData(this.Data));
 }
示例#2
0
 public void WriteHash(
     HashAlgorithm hash,
     DocPosition docPos,
     AncestralNamespaceContextManager anc)
 {
     if (!this.IsInNodeSet)
     {
         return;
     }
     byte[] bytes = new UTF8Encoding(false).GetBytes(Exml.EscapeTextData(this.Data));
     hash.TransformBlock(bytes, 0, bytes.Length, bytes, 0);
 }