Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string[] arr = { "linux", "windows", "linux", "linux", "windows", "mac os", "unix", "mac os" };
- var uniq = arr.Distinct().Select(s => Array.IndexOf(arr, s));
- foreach (int unik in uniq)
- {
- textBox1.AppendText(unik+"\r\n");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement