Namespace: IPS7Lnk
Assemblies: IPS7LnkNet.Advanced.dll
The Range<T> struct defines the following members.
Initializes a new instance of the Range´1 struct with the specified start
and end
values.
C#
public Range(T start, T end)
Parameters
start
T
The lower bound of the region.
end
T
The upper bound of the region.
Exceptions
Either start
or end
is a null reference (Nothing in Visual Basic).
The start
value is lower or equal to the end
.
Gets the upper bound of the range.
C#
public T End { get; }
Property Value
The upper bound of the range.
Gets the lower bound of the range.
C#
public T Start { get; }
Property Value
The lower bound of the range.
Tests whether obj
is a Range´1 structure with the same Start and End of this Range´1.
C#
public override bool Equals(object obj)
Parameters
obj
Object
The Object to test.
Returns
This method returns true if obj
is a Range´1 and Start and End properties are equal to the corresponding properties of this Range´1 structure; otherwise false.
Tests whether other
Range´1 structure does have the same Start and End of this Range´1.
C#
public bool Equals(Range<T> other)
Parameters
other
Range`1
The Range´1 to test.
Returns
This method returns true if the Start and End properties are equal to the corresponding properties of this Range´1 structure; otherwise false.
Returns the hash code for this Range´1 structure. For information about the use of hash codes, see GetHashCode.
C#
public override int GetHashCode()
Returns
An integer that represents the hash code for this range.
Returns a third Range´1 structure that represents the intersection of two other Range´1 structures. If there is no intersection an empty Range´1 is returned.
C#
public static Range<T> Intersect(Range<T> a, Range<T> b)
Parameters
a
Range`1
A range to intersect.
b
Range`1
A range to intersect.
Returns
A Range´1 that represents the intersection of a and b.
Tests whether two Range´1 structures have equal start and end.
C#
public static bool operator ==(Range<T> left, Range<T> right)
Tests whether two Range´1 structures differ.
C#
public static bool operator !=(Range<T> left, Range<T> right)