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