{"provider_url":"https://hatena.blog","height":"190","image_url":null,"published":"2011-03-10 08:39:39","description":"\u914d\u5217\u3084\u3089\u30ea\u30b9\u30c8\u304b\u3089\u91cd\u8907\u3092\u9664\u3044\u3066\u4e00\u610f\u306a\u5024\u3092\u53d6\u308a\u51fa\u3057\u305f\u3044\u3068\u3044\u3046\u3053\u3068\u306f\u3088\u304f\u3042\u308a\u307e\u3059\u304c\u3001LINQ\u3067\u306fEnumerable.Distinct\u30e1\u30bd\u30c3\u30c9\u3092\u5229\u7528\u3059\u308b\u3068\u4e00\u767a\u3067\u5b9f\u73fe\u3067\u304d\u308b\u3088\u3046\u3067\u3059\u3002MSDN\u306e\u30b5\u30f3\u30d7\u30eb\u305d\u306e\u307e\u307e\u3067\u3059\u304c: int[] arr = {21, 46, 46, 55, 17, 21, 55, 55}; var uniq = arr.Distinct(); // \u91cd\u8907\u3092\u53d6\u308a\u9664\u304f foreach (var i in uniq) { Console.WriteLine(i); } /* \u51fa\u529b\u7d50\u679c: 21 46 55 17 */ \u898b\u3066\u306e\u901a\u308a\u30b7\u30fc\u30b1\u30f3\u30b9\u3092\u3042\u3089\u304b\u3058\u3081\u30bd\u30fc\u30c8\u3057\u3066\u304a\u304f\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u4fbf\u5229\u3067\u3059\u2026","width":"100%","categories":["C#"],"url":"https://www.little-cuckoo.jp/entry/20110310/1299713979","type":"rich","title":"\u30b7\u30fc\u30b1\u30f3\u30b9\u304b\u3089\u91cd\u8907\u3057\u305f\u8981\u7d20\u3092\u53d6\u308a\u9664\u304f\u306b\u306f(Unique)","version":"1.0","blog_title":"\u9591\u53e4\u9ce5","author_url":"https://blog.hatena.ne.jp/wata_d/","provider_name":"Hatena Blog","author_name":"wata_d","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.little-cuckoo.jp%2Fentry%2F20110310%2F1299713979\" title=\"\u30b7\u30fc\u30b1\u30f3\u30b9\u304b\u3089\u91cd\u8907\u3057\u305f\u8981\u7d20\u3092\u53d6\u308a\u9664\u304f\u306b\u306f(Unique) - \u9591\u53e4\u9ce5\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_url":"https://www.little-cuckoo.jp/"}