-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
  • 720
  • 2
  • 11
  • 24

1 Answers1

2

The question almost is the answer:

var array2 = array1.Distinct().ToArray();
H H
  • 263,252
  • 30
  • 330
  • 514
  • 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