protected void PushEndTag(string endTag) { if(_endTags == null) { _endTags = new TagStackEntry[16]; } else if (_endTagCount >= _endTags.Length) { TagStackEntry[] newArray = new TagStackEntry[_endTags.Length * 2]; Array.Copy(_endTags, newArray, _endTags.Length); _endTags = newArray; } _endTags[_endTagCount].tagKey = _tagKey; _endTags[_endTagCount].endTagText= endTag; _endTagCount++; }
protected void PushEndTag(string endTag){ if (_endTagCount >= (int) _endTags.Length) { TagStackEntry[] temp = new TagStackEntry[(int) _endTags.Length * 2]; System.Array.Copy(_endTags, temp, (int) _endTags.Length); _endTags = temp; } _endTags[_endTagCount].tagKey = _tagKey; _endTags[_endTagCount].endTagText = endTag; _endTagCount++; }
protected void PushEndTag(string endTag) { if (this._endTags == null) { this._endTags = new TagStackEntry[0x10]; } else if (this._endTagCount >= this._endTags.Length) { TagStackEntry[] destinationArray = new TagStackEntry[this._endTags.Length * 2]; Array.Copy(this._endTags, destinationArray, this._endTags.Length); this._endTags = destinationArray; } this._endTags[this._endTagCount].tagKey = this._tagKey; this._endTags[this._endTagCount].endTagText = endTag; this._endTagCount++; }
public HtmlTextWriter(TextWriter writer, string tabString) : base() { this.writer = writer; this.tabString = tabString; indentLevel = 0; tabsPending = false; _httpWriter = writer as HttpWriter; _isDescendant = GetType() == typeof(HtmlTextWriter) == false; _attrList = new RenderAttribute[20]; _attrCount = 0; _styleList = new RenderStyle[20]; _styleCount = 0; _endTags = new TagStackEntry[16]; _endTagCount = 0; _inlineCount = 0; }