コード例 #1
0
ファイル: HtmlTextWriter.cs プロジェクト: HtmlTags/htmltags
 private void AddAttribute(string name, string value, HtmlTextWriterAttribute key, bool encode, bool isUrl)
 {
     if (_attrList == null)
     {
         _attrList = new RenderAttribute[20];
     }
     else if (_attrCount >= _attrList.Length)
     {
         RenderAttribute[] newArray = new RenderAttribute[_attrList.Length * 2];
         Array.Copy(_attrList, newArray, _attrList.Length);
         _attrList = newArray;
     }
     RenderAttribute attr;
     attr.name = name;
     attr.value = value;
     attr.key = key;
     attr.encode = encode;
     attr.isUrl = isUrl;
     _attrList[_attrCount] = attr;
     _attrCount++;
 }