Esempio n. 1
0
 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++;
 }
Esempio n. 2
0
 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++;
 }