Table of Contents

Class TimeRange

Namespace
Utils.Range
Assembly
Utils.dll

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

start TimeOnly

The start time of the range.

end TimeOnly

The end time of the range.

Methods

Equals(object?)

Determines whether the specified object represents the same time range boundaries.

public override bool Equals(object? obj)

Parameters

obj object

The 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()

Returns

int

A hash code based on Start and End.