예제 #1
0
        public Dictionary <string, string> GetExtendedProperties()
        {
            Dictionary <string, string> properties = new Dictionary <string, string>();

            properties.Add("Date", Published != DateTime.MinValue ? Published.ToShortDateString() : "N/A");
            return(properties);
        }
예제 #2
0
 public override string ToString()
 {
     return($"\"{Title}\" by {Author} published on {Published.ToShortDateString()} {TagList()}");
 }
예제 #3
0
 public override string ToString()
 {
     return(string.Format("{0} {1:C} {2}", Title, Genre, Published.ToShortDateString()));
 }
예제 #4
0
 //Override to string
 public override string ToString()
 {
     /*Use .ToShortDateString() to ensure that the date is shown without time*/
     return($"{Author} {Title} {Pages} {Genre} {Published.ToShortDateString()}");
 }