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.
Parameters:
| array (int[]) | The one-dimensional Array that is the destination of the elements copied from IndexPair. The Array must have zero-based indexing. |
| arrayIndex (int) | The zero-based index in array at which copying begins. |
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.
Parameters:
| item (int) | The object to locate in the IList. |
Returns: The index, 0 for I or 1 for J of
item if found in the list; otherwise, -1.