VPEnumerableExtensions To2DArray T  Method Virtual Photonics - VTS Library
Virtual Photonics
Converts an IEnumerable into a 2D array given a specified width and height

Namespace: Vts.Extensions
Assembly: Vts (in Vts.dll) Version: 1.0.12.0 (1.0.12)
Syntax

public static T[,] To2DArray<T>(
	this IEnumerable<T> myArray,
	int width,
	int height
)

Parameters

myArray
Type: OnlineSystem.Collections.Generic IEnumerable T 
width
Type: OnlineSystem Int32
height
Type: OnlineSystem Int32
Type Parameters

T

Return Value

Type:  T 

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type OnlineIEnumerable T . When you use instance method syntax to call this method, omit the first parameter. For more information, see OnlineExtension Methods (Visual Basic) or OnlineExtension Methods (C# Programming Guide).
See Also