web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / Nishant Rana’s Weblog / Split List into equal parts...

Split List into equal parts in C#

Nishant Rana Profile Picture Nishant Rana 11,325 Microsoft Employee

Hi,

Had a requirement to split a List in 3 smaller lists.

For e.g. if a list has 13 different elements.

It has to split into 3 list containing 5, 5 and 3 elements in it.

The helpful post

http://stackoverflow.com/questions/3892734/split-c-sharp-collection-into-equal-parts-maintaining-sort

Hope it helps !


Filed under: C# Tagged: C#

This was originally posted here.

Comments

*This post is locked for comments