Esempio n. 1
0
 void EnsureCapacityToAdd()
 {
     if (this.count == this.entries.Length)
     {
         XmlTokenEntry[] newBuffer = new XmlTokenEntry[this.entries.Length * 2];
         Array.Copy(this.entries, 0, newBuffer, 0, this.count);
         this.entries = newBuffer;
     }
 }
 private void EnsureCapacityToAdd()
 {
     if (this.count == this.entries.Length)
     {
         XmlTokenEntry[] destinationArray = new XmlTokenEntry[this.entries.Length * 2];
         Array.Copy(this.entries, 0, destinationArray, 0, this.count);
         this.entries = destinationArray;
     }
 }
 private void EnsureCapacityToAdd()
 {
     if (this.count == this.entries.Length)
     {
         XmlTokenEntry[] destinationArray = new XmlTokenEntry[this.entries.Length * 2];
         Array.Copy(this.entries, 0, destinationArray, 0, this.count);
         this.entries = destinationArray;
     }
 }
 public XmlTokenStreamWriter(XmlTokenEntry[] entries,
                              int count,
                              string excludedElement,
                              int? excludedElementDepth,
                              string excludedElementNamespace)
 {
     if (entries == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("entries");
     }
     this.entries = entries;
     this.count = count;
     this.excludedElement = excludedElement;
     this.excludedElementDepth = excludedElementDepth;
     this.excludedElementNamespace = excludedElementNamespace;
 }
 void EnsureCapacityToAdd()
 {
     if (this.count == this.entries.Length)
     {
         XmlTokenEntry[] newBuffer = new XmlTokenEntry[this.entries.Length * 2];
         Array.Copy(this.entries, 0, newBuffer, 0, this.count);
         this.entries = newBuffer;
     }
 }