 | GridExtensionsGetCellTCell, TPoint Method |
The same as `grid[point]`. This method is included to make
it easier to construct certain LINQ expressions, for example
grid.Select(grid.GetCell)
grid.Where(p => p.GetColor4_2() == 0).Select(grid.GetCell)
Namespace:
Gamelogic.Grids
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax[VersionAttribute(1, 7, 0)]
public static TCell GetCell<TCell, TPoint>(
this IGrid<TCell, TPoint> grid,
TPoint point
)
where TPoint : Object, IGridPoint<TPoint>
Parameters
- grid
- Type: Gamelogic.GridsIGridTCell, TPoint
- point
- Type: TPoint
Type Parameters
- TCell
- TPoint
Return Value
Type:
TCellUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IGridTCell,
TPoint. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also