public override string ToString() { return(Name + " National Park" + "\n" + "Locations:".PadRight(17) + Location + "\n" + "Established:".PadRight(17) + Establish_Date.ToShortDateString() + "\n" + "Area:".PadRight(17) + $"{Area:###,###,##0} sq km" + "\n" + "Annual Visitors:".PadRight(17) + $"{Visitors:###,###,###,##0}" + "\n\n" + Description); }
public override string ToString() { return($"{Park_Id, 10} {Name, -10} \n {Location, 30} {Establish_Date.ToString("M/d/yyyy"), -10} \n {Area, 20} {Vistors, -10} {Description}"); }