Range.Equality Operator

Returns whether two instances of Range are equal.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
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