Version

IntersectsWith(DateTimeRange,Boolean) Method

Returns a boolean value indicating whether the specified range intersects with any part of this range.
Syntax
public bool IntersectsWith( 
   DateTimeRange range,
   bool isEndExclusive
)

Parameters

range
The DateTimeRange to which this range is compared.
isEndExclusive
Boolean value indicating the manner in which the value of the specified range's Start property is compared to the value of this instance's End property. When true is specified, this method returns false if the start of the specified range is exactly equal to the value of this instance's End property, thereby excluding the moment in time which coincides exactly with the end of this range. This parameter defaults to true.
Requirements

Target Platforms: Android 4.4+, iOS 8+

Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+

See Also