ArcFM Engine Developer Guide
LimitGroupSize<T> Method


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