public override string ToString() { return(ParkName.PadRight(17)); }
public override string ToString() { return($"{ParkId.ToString()} {ParkName.PadRight(10)} {ParkLocation.PadRight(10)} {ParkEstablishDate.ToString().PadRight(10)} {Area.ToString().PadRight(10)} {Visitors.ToString().PadRight(10)} {ParkDescription.PadRight(10)}"); }
// Used for viewing the list of all parks. Formats info to look nice public override string ToString() { return(ParkId.ToString().PadRight(3) + ParkName.PadRight(5)); }
public override string ToString() { return(ParkId.ToString().PadRight(6) + ParkName.PadRight(6) + Location.PadRight(12) + EstablishedDate.ToString().PadRight(12) + Area.ToString().PadRight(10) + Visitors.ToString().PadRight(10) + "\n" + Description); }