Click or drag to resize

DateRange Methods

The DateRange type exposes the following members.

Methods
 NameDescription
Public methodCode exampleCompareTo(DateRange) Compares the current instance with another DateRange.
Public methodCode exampleCompareTo(DateTimeOffset) Compares this instance to a specified DateTimeOffset structure and returns an indication of their relative values.
Public methodContains(DateTimeOffset) Returns true if the given DateTimeOffset is contained within this range.
Public methodContains(IRangeDateTimeOffset) Returns true if the given range is contained within this range.
Public methodContains(NullableDateRange) Returns true if the given DateRange is contained within this range.
Public methodEquals(DateRange) Determines whether the specified DateRange is equal to the current DateRange.
Public methodEquals(Object) Determines whether the specified Object is equal to the current DateRange.
(Overrides ValueTypeEquals(Object))
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCode Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
(Overrides ValueTypeGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodOverlaps(DateRange) Returns true if the given DateRange is partially contained within this DateRange.
Public methodOverlaps(IRangeDateTimeOffset) Returns true if the given range is partially contained within this range.
Public methodToOffset Converts the value of the current DateRange object to the date range specified by an offset value.
Public methodToString Converts the value of this instance to its equivalent string representation.
(Overrides ValueTypeToString)
Public methodToString(IFormatProvider) Converts the value of this instance to its equivalent string representation using the specified culture-specific format information.
Public methodToString(String) Converts the value of this instance to its equivalent string representation using the specified format.
Public methodToString(String, IFormatProvider) Converts the value of this instance to its equivalent string representation using the specified format and culture-specific format information.
Top
Explicit Interface Implementations
 NameDescription
Explicit interface implementationPrivate methodIComparableCompareTo Compares this instance to a specified Object and returns an indication of their relative values.
Top
See Also