コード例 #1
0
ファイル: Video.cs プロジェクト: windygu/mp-onlinevideos2
        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
ファイル: Book.cs プロジェクト: S00189591/Book_Revision_Xmas
 //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()}");
 }