ArcFM Solution Developer Guide
LimitGroupSize<T> Method


Split collection into a collection of groups with max number of items in each group
Syntax
'Declaration
 
<System.Runtime.CompilerServices.ExtensionAttribute()>
Public Shared Function LimitGroupSize(Of T)( _
   ByVal list As System.Collections.Generic.ICollection(Of T), _
   ByVal maxSize As System.Integer _
) As System.Collections.Generic.IEnumerable(Of List(Of T))
'Usage
 
Dim list As System.Collections.Generic.ICollection(Of T)
Dim maxSize As System.Integer
Dim value As System.Collections.Generic.IEnumerable(Of List(Of T))
 
value = EnumerableExtensions.LimitGroupSize(Of T)(list, maxSize)
[System.Runtime.CompilerServices.Extension()]
public static System.Collections.Generic.IEnumerable<List<T>> LimitGroupSize<T>( 
   System.Collections.Generic.ICollection<T> list,
   System.int maxSize
)

Parameters

list
maxSize

Type Parameters

T
Requirements

Target Platforms: Windows XP SP3 (32-bit and 64-bit), Windows 7 (32-bit and 64-bit)

Not all Operating Systems are supported on all products. Visit the ArcFM Solution Supported Versions page for full details.

See Also

Reference

EnumerableExtensions Class
EnumerableExtensions Members

 

 


Send Comment