Skip to main content

TimeSpanRange Members

The time span range.

Constructors

Name Description
TimeSpanRange(TimeSpan, TimeSpan) Initializes a new instance of the TimeSpanRange class with specified settings.

Properties

Name Description
Day static Returns the range that specifies the whole day.
Duration Returns the range duration.
Empty static Returns the range whose Start and End values are equal to the TimeSpan.Zero.
End Returns the end value of the range.
IsDay Returns whether the range specifies the while day.
IsValid Returns whether the end value is larger than or equal to the start value.
IsZero Checks whether Start and End properties equal to TimeSpan.Zero.
Start Returns the start value of the range.

Methods

Name Description
Equals(TimeSpanRange) Checks whether the specified range is equal to the current range.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Checks whether the specified object is equal to the current range.
GetHashCode() Serves as the default hash function.
GetType() Gets the Type of the current instance. Inherited from Object.
Intersect(TimeSpanRange, TimeSpanRange) static Computes the intersection of the specified ranges.
Intersect(TimeSpanRange) Computes the intersection of the current range with the specified range.
Parse(String, CultureInfo) static Parses the specified string and convert it into the time span range.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString() Converts the range to a string.
ToString(IFormatProvider) Converts the range to a string that is formatted to the specified culture-specific formatting information.
ToString(String, IFormatProvider) Converts the range to a string that is formatted with the specified format string and culture-specific formatting information.
TryParse(String, CultureInfo, out TimeSpanRange) static Tries to parse the specified string and convert it into the time span range.
Union(TimeSpanRange, TimeSpanRange) static Computes the union of the specified ranges.
Union(TimeSpanRange) Computes the union of the specified ranges.

Operators

Name Description
Equality(TimeSpanRange, TimeSpanRange) static Determines whether two specified ranges have the same value.
Inequality(TimeSpanRange, TimeSpanRange) static Determines whether two specified ranges have different values.
See Also