public override string ToString() { switch (TypeOfXmlElement) { case TypeOfXmlElement.U: return(TypeOfXmlElement.ToString() + " [" + string.Join(" | ", MatchStringsCETorU) + ']'); default: var sb = new StringBuilder(); if (RoleENTITYorVERB.HasValue) { sb.Append("role:" + RoleENTITYorVERB.Value.ToString()); } if (TypeENTITYorVERB.HasValue) { sb.Append("type:" + TypeENTITYorVERB.Value.ToString()); } return(TypeOfXmlElement.ToString() + ((sb.Length != 0) ? (" [" + sb.ToString() + ']') : string.Empty)); } }
public override string ToString() { return(TypeOfXmlElement.ToString() + '(' + VALUE + ')'); }