int[] numArray = { 1, 2, 2, 3, 3, 3, 4, 5, 5 };ย 

int[] distArray = numArray.Distinct().ToArray();

์ด๊ฑฐ ํ•˜๋ฉด Distinct์— ์˜ค๋ฅ˜๋œธ