public override string ToString() { StringBuilder sb = new StringBuilder(); sb.AppendLine("[ArtistBrowse]"); sb.AppendLine("Error=" + Error); sb.AppendLine(Artist.ToString()); sb.AppendLine("PortraitsIds.Length=" + PortraitIds.Count); foreach (string portraitId in PortraitIds) { sb.AppendLine(portraitId); } sb.AppendLine("Tracks.Length=" + Tracks.Count); foreach (Track t in Tracks) { sb.AppendLine(t.ToString()); } sb.AppendLine("SimilarArtists.Length=" + SimilarArtists.Count); foreach (Artist a in SimilarArtists) { sb.AppendLine(a.ToString()); } sb.AppendFormat("Biography:{0}{1}", Environment.NewLine, Biography); return(sb.ToString()); }
public override string ToString() { StringBuilder sb = new StringBuilder(); sb.AppendLine("[AlbumBrowse]"); sb.AppendLine("Error=" + Error); sb.AppendLine(Album.ToString()); sb.AppendLine(Artist.ToString()); sb.AppendLine("Copyrights=" + string.Join(",", Copyrights.ToArray())); sb.AppendLine("Tracks.Length=" + Tracks.Count); foreach (Track t in Tracks) { sb.AppendLine(t.ToString()); } sb.AppendFormat("Review:{0}{1}", Environment.NewLine, Review); return(sb.ToString()); }