|
-
Jun 8th, 2006, 10:43 AM
#1
Thread Starter
Fanatic Member
[2.0] Sorting a list of lists... how to?
Hello,
I have a list of lists of strings (List<List<string>>).
Anyone knows how can I sort the lists on the primary list by their
count property?
thanks,
-
Jun 8th, 2006, 05:54 PM
#2
Re: [2.0] Sorting a list of lists... how to?
The List.Sort method is overloaded and allows you to specify a Comparison<T> or an IComparer<T>. You should read the relevant help topics to determine how to create your own Comparison<List<string>> or IComparer<List<string>> that will compare the Lists by their Count property.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|