public override string ToString()
        {
            if (Weekdays == null || Weekdays.Count == 0)
            {
                return(String.Format("{{ Time: {0} }}", PSSchedule.ToLocalizedTime(Time)));
            }

            return(String.Format("{{ Time: {0}, Weekdays: {1} }}", PSSchedule.ToLocalizedTime(Time), string.Join(", ", Weekdays.Select(i => i.ToString()))));
        }
Exemplo n.º 2
0
 public override string ToString()
 {
     return(String.Format("{{ Time: {0} }}", PSSchedule.ToLocalizedTime(Time)));
 }