/// <summary> /// 显示[具体信息]$[单词类型]$[行数]$[列数]$[是否是正确的单词]$[备注说明] /// </summary> /// <returns></returns> public override string ToString() { return(string.Format("[{0}]$[{1}]$[{2},{3}]$[{4}]$[{5}]" , Detail.ToString().Replace("\r\n", "$").Replace('\r', '$').Replace('\n', '$') , TokenType, Line, Column, LexicalError , ErrorInfo.Replace("\r\n", "$").Replace('\r', '$').Replace('\n', '$'))); }