private void EnsureCapacityToAdd()
 {
     if (Count == _elements.Length)
     {
         ReceiveSecurityHeaderEntry[] newElements = new ReceiveSecurityHeaderEntry[_elements.Length * 2];
         Array.Copy(_elements, 0, newElements, 0, Count);
         _elements = newElements;
     }
 }
 private void EnsureCapacityToAdd()
 {
     if (this.count == this.elements.Length)
     {
         ReceiveSecurityHeaderEntry[] newElements = new ReceiveSecurityHeaderEntry[this.elements.Length * 2];
         Array.Copy(this.elements, 0, newElements, 0, this.count);
         this.elements = newElements;
     }
 }
 public void ReplaceHeaderEntry(int index, ReceiveSecurityHeaderEntry element)
 {
     Fx.Assert(0 <= index && index < Count, "");
     _elements[index] = element;
 }
 public void GetElementEntry(int index, out ReceiveSecurityHeaderEntry element)
 {
     Fx.Assert(0 <= index && index < Count, "index out of range");
     element = _elements[index];
 }