Remove Duplicates from ArrayList in C#

you can use this psudo code for removing redundant data in array list

private static ArrayList RemoveDuplicate(ArrayList sourceList)
ArrayList list = new ArrayList();
foreach (string item in sourceList)
if (!list.Contains(item))
} return list;

i searched this method using google
the programmer used nice work to give result

About kakani santosh kumar

Working as Software Engineer in Prithvi Information Solutions having 3 years of Experience in Dotnet Framework ranging from 1.1 to 3.5
This entry was posted in Uncategorized and tagged , , , . Bookmark the permalink.

3 Responses to Remove Duplicates from ArrayList in C#

  1. polas says:

    How to use this function on a button ?

    • protected void btn_Click(object sender, EventArgs e)
      ArrayList list = RemoveDuplicate(Sourcelist); // Here SourceList is the array to which //need to be sorted and RemoveDuplicate is a method which i discussed previously


  2. Ashlee says:

    You share interesting things here. I think that your blog can go viral easily, but you must give it initial boost
    and i know how to do it, just search in google (with
    quotes) for – “mundillo traffic increase make your website go viral”

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s