Namespace: DWSIM.ExtensionMethodsAssembly: DWSIM.ExtensionMethods (in DWSIM.ExtensionMethods.dll) Version: 8.8.1.0
Syntax public static List<List<T>> Chunk<T>(
this List<T> locations,
int nSize = 30
)
<ExtensionAttribute>
Public Shared Function Chunk(Of T) (
locations As List(Of T),
Optional nSize As Integer = 30
) As List(Of List(Of T))
Request Example
View SourceParameters
- locations ListT
-
- nSize Int32 (Optional)
-
Type Parameters
- T
Return Value
ListListTUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
ListT. 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