I have filled a List like below wich some strings. I wonder if the List has any property where you in an easy way can remove duplicates. Else I wonder how this can be done ?

List<String> GetData = new List<String>();

GetData.Add("one");
GetData.Add("two");
GetData.Add("one");
GetData.Add("three");

isnt this a c# question?

isnt this a c# question?

But std:: isnĀ“t managed code. Yes it might be that, perheps I would write it like this instead:

List<String^> GetData = gcnew List<String^>(); 
GetData->Add("one");
GetData->Add("two");
GetData->Add("one");
GetData->Add("three");

yeah now it looks better :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.