Range.Equality Operator

Returns a value indicating whether two instances of Range are equal.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static bool operator ==(
	Range range1,
	Range range2
)

Parameters

range1  Range
A Range.
range2  Range
A Range.

Return Value

Boolean
true if range1 and range2 specify the same range; otherwise false.

Remarks

Two ranges are equal if they are both equal to All, or if their StartIndex, EndIndex, and Stride properties are the same.

See Also