Version

DateRange Structure Members

The following tables list the members exposed by DateRange.

Public Constructors
 NameDescription
Public ConstructorDateRange ConstructorOverloaded.   
Public Properties
 NameDescription
Public PropertyEndReturns or sets the latest/end date for the range.  
Public Propertystatic (Shared in Visual Basic)InfiniteReturns a data range from DateTime.MinValue to DateTime.MaxValue  
Public PropertyIsEmptyReturns true if the Start and End are the same values.  
Public PropertyStartReturns or sets the earliest/start date for the range.  
Public Methods
 NameDescription
Public MethodCompareToCompares this instance to the specified DateRange  
Public MethodContainsOverloaded. Indicates if the specified date falls within the Start and End dates for this range.  
Public MethodEqualsOverloaded. Compares the specified object to this object to see if they are equivalent.  
Public MethodGetHashCodeReturns the hash code of the structure.  
Public MethodIntersectAttempts to update the Start and End if the specified range intersects with this instance  
Public MethodIntersectsWithIndicates if the Start and End of the specified DateRange intersects with this object's dates.  
Public MethodNormalizeOverloaded. Ensures that the start date is less than or equal to the end date.  
Public MethodOffsetMoves the date range by the specified offset.  
Public MethodRemoveTimeRemoves the time portion from the Start and End  
Public MethodToStringOverloaded. Returns a string representation of the object.  
Public Operators
public Operator Equality Compares the values of two DateRange structures for equality
public Operator Inequality Compares the values of two DateRange structures for inequality
See Also