Monday, June 1, 2015

Remove duplicates values from array.

int[] sa = { 1, 2, 3, 3, 4};
int[] q = sa.Distinct().ToArray();

 

No comments:

Post a Comment