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# ?
Asked
Active
Viewed 63 times
1 Answers
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