ArcFM Responder Mobile 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
)
public function LimitGroupSize( 
    list: System.Collections.Generic.ICollection;
    maxSize: System.Integer
): System.Collections.Generic.IEnumerable; static; 
System.Runtime.CompilerServices.ExtensionAttribute()
public static function LimitGroupSize( 
   list : System.Collections.Generic.ICollection,
   maxSize : System.int
) : System.Collections.Generic.IEnumerable;
[System.Runtime.CompilerServices.Extension()]
public: static System.Collections.Generic.IEnumerable<List<T*>*>* LimitGroupSize<T>( 
   System.Collections.Generic.ICollection<T*>* list,
   System.int maxSize
) 
[System.Runtime.CompilerServices.Extension()]
public:
static System.Collections.Generic.IEnumerable<List<T^>^>^ LimitGroupSizegeneric<typename T>
( 
   System.Collections.Generic.ICollection<T^>^ list,
   System.int maxSize
) 

Parameters

list
maxSize

Type Parameters

T
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

EnumerableExtensions Class
EnumerableExtensions Members

Send Feedback