Method Contains
Contains(DateTimeRange)
Returns true if both the start and end properties of other
fall within this date range, or if other
is equal to this date range.
Declaration
public bool Contains(DateTimeRange other)
Parameters
Type | Name | Description |
---|---|---|
DateTimeRange | other | Another DateTimeRange to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | True if this range specified by this instance contains the range specified by |
Contains(DateTime)
Returns true if the date and time specified by moment
falls within the range specified by this instance, otherwise false.
Declaration
public bool Contains(DateTime moment)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | moment | A System.DateTime instance to check. |
Returns
Type | Description |
---|---|
System.Boolean | True if the date and time specified by |