Guest User

Untitled

a guest
Jan 16th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. string[] arrayWord = temp.Split(new char[] { 'u2295' }, StringSplitOptions.RemoveEmptyEntries);
  2. var result = arrayWord.Distinct();
  3.  
  4. string[] source = new [] {
  5. "asdf",
  6. "asdf1",
  7. "asdf",
  8. "123",
  9. "1234",
  10. "123",
  11. "123",
  12. };
  13.  
  14. // Для наглядности чего сколько
  15. source.GroupBy(x => x).Select(x => new { Value = x.Key, Count = x.Count() }).Dump();
  16.  
  17. var result = source.GroupBy(x => x).Select(x => x.Key);
  18. result.Dump();
Add Comment
Please, Sign In to add comment