-2

I have an array of about 1000 words. I want to transfer them to another array while removing any duplicates. How can I do this in C# ?

mahen23
  • 661
  • 2
  • 10
  • 22

1 Answers1

2

The question almost is the answer:

var array2 = array1.Distinct().ToArray();
Henk Holterman
  • 250,905
  • 30
  • 306
  • 490
  • I cannot run that script in PHP due to timeout errors, better i run it in C# but its been ages since i touched C#, last time C# spec 1.0 was still new. – mahen23 Apr 06 '16 at 07:47