Chimney.MPD.Classes.Stats.ToString C# (CSharp) Метод

ToString() публичный Метод

public ToString ( ) : string
Результат string
        public override string ToString()
        {
            string statstext = string.Empty;

            if(!string.IsNullOrEmpty(this.Artists)) statstext = statstext + "artists: " + this.Artists + "\n";
            else statstext = statstext + "artists: 0\n";

            if (!string.IsNullOrEmpty(this.Albums)) statstext = statstext + "albums: " + this.Albums + "\n";
            else statstext = statstext + "albums: 0\n";

            if (!string.IsNullOrEmpty(this.Songs)) statstext = statstext + "songs: " + this.Songs + "\n";
            else statstext = statstext + "songs: 0\n";

            if (!string.IsNullOrEmpty(this.Uptime)) statstext = statstext + "uptime: " + this.Uptime + "\n";
            else statstext = statstext + "uptime: 0\n";

            if (!string.IsNullOrEmpty(this.DbPlaytime)) statstext = statstext + "db_playtime: " + this._db_playtime + "\n";
            else statstext = statstext + "db_playtime: 0\n";

            if (!string.IsNullOrEmpty(this.DbUpdate)) statstext = statstext + "db_update: " + this.DbUpdate + "\n";
            else statstext = statstext + "db_update: 0\n";

            if (!string.IsNullOrEmpty(this.Playtime)) statstext = statstext + "playtime: " + this.Playtime + "\n";
            else statstext = statstext + "playtime: 0\n";

            return statstext;
        }