예제 #1
0
 public override string ToString()
 {
     return(CampgroundId.ToString().PadRight(5) + Name.PadRight(35) + OpenFrom.ToString().PadRight(15) + OpenTo.ToString().PadRight(15) + Fee.ToString("C2").PadRight(6));
 }
예제 #2
0
 public override string ToString()
 {
     return(Id.ToString().PadRight(4) + Name.PadRight(25) + IsAccessible.ToString().PadRight(20) +
            OpenFrom.PadRight(10) + OpenTo.PadRight(10) +
            DailyRate.ToString("C").PadRight(15) + MaxOccupancy.ToString().PadRight(10));
 }
 public override string ToString()
 {
     return("#" + CampgroundID.ToString().PadRight(10) + Name.PadRight(20) + OpenFrom.ToString().PadRight(10) + OpenTo.ToString().PadRight(10) + Math.Round(DailyFee, 2).ToString());
 }