Class Schedule
public sealed class Schedule : IEquatable<Schedule>
- Inheritance
-
Schedule
- Implements
- Inherited Members
Constructors
Schedule()
public Schedule()
Schedule(TimeSpan)
public Schedule(TimeSpan timeOfDay)
Parameters
timeOfDayTimeSpan
Schedule(TimeSpan, params DayOfWeek[])
public Schedule(TimeSpan timeOfDay, params DayOfWeek[] daysOfWeek)
Parameters
Properties
TimesOfWeek
public HashSet<TimeOfWeek> TimesOfWeek { get; }
Property Value
Methods
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
Equals(Schedule?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Schedule? other)
Parameters
otherScheduleAn object to compare with this object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
GetNextOccurrence(DateTime)
public DateTime GetNextOccurrence(DateTime fromDate)
Parameters
fromDateDateTime
Returns
GetRemainingTime(DateTime)
public TimeSpan GetRemainingTime(DateTime fromDate)
Parameters
fromDateDateTime