Summary
Represents an unordered set of two items.
Generic type parameters
T |
The type of elements in the set. |
Remarks
This type is used in this library for two purposes:
-
When used with cell types (Square, Hex, etc.), it represents a traversible link
between two cells.
-
When used with Vertex, it represents an edge connecting two vertices when rendering SVG.
Two instances of Link<T> containing the same two elements will compare equal regardless of the
order in which the elements are specified.
Constructors
Instance methods
T | | Returns the elements of this link in no particular order. |
void | |
Deconstructor. |
bool | | Refer to the documentation for IEquatable<Link<T>>.Equals. |
bool | | Refer to the documentation for object.Equals. |
Link<T>.LinkEnumerator | | Returns the elements linked by this Link<T> without guaranteeing an order. |
int | | Refer to the documentation for object.GetHashCode. |
T | |
Given an element in this link, returns the other element. |
string | | Refer to the documentation for object.ToString. |
Operators
bool | | Compares two Link<T> values for equality. |
bool | | Compares two Link<T> values for inequality. |
Nested types
| Iterates the two elements in a Link<T>. |