Advertisement
RieqyNS13

Untitled

Dec 16th, 2013
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.29 KB | None | 0 0
  1.  string[] arr = { "linux", "windows", "linux", "linux", "windows", "mac os", "unix", "mac os" };
  2.             var uniq = arr.Distinct().Select(s => Array.IndexOf(arr, s));
  3.             foreach (int unik in uniq)
  4.             {
  5.                 textBox1.AppendText(unik+"\r\n");
  6.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement