Method Apply
Apply<TPoint, TCell>(IGrid<TPoint, TCell>, Action<TPoint>)
Applies an action for each cell in the grid.
public static void Apply<TPoint, TCell>(this IGrid<TPoint, TCell> grid, Action<TPoint> action)
Parameters
gridIGrid<TPoint, TCell>The grid for which the action is applied.
actionAction<TPoint>The action to apply for each point. The action is called with the point as parameter.
Type Parameters
TPointThe point type of the grid.
TCellThe cell type of the grid.
Apply<TPoint, TCell>(IGrid<TPoint, TCell>, Action<TCell>)
Applies an action for each cell in the grid.
public static void Apply<TPoint, TCell>(this IGrid<TPoint, TCell> grid, Action<TCell> action)
Parameters
gridIGrid<TPoint, TCell>The grid for which the action is applied.
actionAction<TCell>The action to apply for each point. The action is called with the cell as parameter.
Type Parameters
TPointThe point type of the grid.
TCellThe cell type of the grid.