/// <summary> /// 获取标签内容的字符串引用 /// </summary> /// <returns></returns> public override String ToString() { if (LastToken != null && FirstToken != LastToken) { StringBuilder sb = new StringBuilder(); Token t = FirstToken; sb.Append(t.ToString()); while ((t = t.Next) != null && t != LastToken) { sb.Append(t.ToString()); } sb.Append(LastToken.ToString()); return(sb.ToString()); } else { return(FirstToken.ToString()); } }
private void ConcatToken(string value) { LastToken.ConcatValue(value); IsToAdd = false; }