Skip to main content

IIndex2D

Interface for two-dimensional indexed access to array data.

Namespace: ControlBee.Interfaces

Methods

GetValue

Gets the value at the specified indices.

object? GetValue(int index1, int index2);

Parameters:

  • index1 — The first dimension index.
  • index2 — The second dimension index.

Returns: The value at the indices, or null.

SetValue

Sets the value at the specified indices.

void SetValue((int, int) index, object value);
void SetValue(int index1, int index2, object value);

Parameters:

  • index — A tuple of indices.
  • index1 — The first dimension index.
  • index2 — The second dimension index.
  • value — The value to set.

See Also