コード例 #1
0
 public static string GetSeasonEpisodeInNumberFormat(this EpisodeForComparingDto ep)
 {
     return($"{ep.SeasonNumber}.{ep.EpisodeNumberInSeason.ToString("D2")}");
 }
コード例 #2
0
 /// <summary>
 /// Returns episode information as string in "SeriesName - x.yy - EpisodeTitle" format
 /// </summary>
 /// <param name="ep"></param>
 /// <returns></returns>
 public static string GetFormattedFilename(this EpisodeForComparingDto ep)
 {
     return(($"{ep.SeriesName} - {ep.GetSeasonEpisodeInNumberFormat()} - {ep.EpisodeTitle}").TrimEnd(' '));
 }