IndexPair
References[StructLayout(LayoutKind.Sequential, Pack = 4, Size = 8)]
[DebuggerDisplay("{m_i}, {m_j}")]
[Serializable]
public struct IndexPair : IList<int>, IReadOnlyList<int>
Represents two indices: I and J.
Constructors
Properties
Returns the amount of elements in this pair of indices, which is always 2.
Indexers
Methods
Determines whether the IndexPair contains a specific value.
Exceptions:
| ArgumentNullException | array is null. |
| ArgumentOutOfRangeException | arrayIndex is less than 0 or arrayIndex is greater than or equals the length of array minus 2. |
| ArgumentException | The length of the array is less than 2. |
Returns: The needed enumerator.
Determines the index of a specific item in IndexPair.
Returns: The index, 0 for I or 1 for J of
item if found in the list; otherwise, -1.