Class TimeRange
Represents an inclusive cyclic range of TimeOnly values.
public sealed class TimeRange : CyclicRange<TimeOnly>, IRange<TimeOnly>
- Inheritance
-
TimeRange
- Implements
- Inherited Members
- Extension Methods
Constructors
TimeRange(TimeOnly, TimeOnly)
Initializes a new instance of the TimeRange class.
public TimeRange(TimeOnly start, TimeOnly end)
Parameters
Methods
Equals(object?)
Determines whether the specified object represents the same time range boundaries.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true when the compared object is a compatible time range with identical boundaries; otherwise, false.
GetHashCode()
Returns a hash code for the current time range.
public override int GetHashCode()