By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,903 Members | 1,670 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,903 IT Pros & Developers. It's quick & easy.

Generic List Order

P: n/a

I have an enum as follows:

Public Enum Feature

And a generic list:
Dim features As Generic.List(Of Feature)

I need to do 2 things:

1. Remove duplicate elements from my generic list (I am not sure if
generic.list allows to add duplicate elements)
2. Reorder the features according to a variable:

if a = 1 Then

Reorder features as follows:
Search, Title, Content, Date

elseif a = 2

Reorder features as follows:
Title, Search, Date, Content


Note: features might have all elements in feature enum or not ...
however that shouldn't affect the order.
For example, if features include Search and Content and a
= 1 then the order would be:
Search, Content

How can I do this?

Thank You,

May 10 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.