Click or drag to resize

GridExtensionsCastValuesTNewCell, TPoint Method

Returns a new grid in the same shape as the given grid, with the same contents casted to the new type.

Namespace:  Gamelogic.Grids
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public static IGrid<TNewCell, TPoint> CastValues<TNewCell, TPoint>(
	this IGrid<TPoint> grid
)
where TPoint : Object, IGridPoint<TPoint>

Parameters

grid
Type: Gamelogic.GridsIGridTPoint

Type Parameters

TNewCell
TPoint

Return Value

Type: IGridTNewCell, TPoint

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IGridTPoint. 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