Esempio n. 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);
        }
Esempio n. 2
0
 public override string ToString()
 {
     return($"\"{Title}\" by {Author} published on {Published.ToShortDateString()} {TagList()}");
 }
Esempio n. 3
0
 public override string ToString()
 {
     return(string.Format("{0} {1:C} {2}", Title, Genre, Published.ToShortDateString()));
 }
Esempio n. 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()}");
 }