{"categories":["C#"],"height":"190","blog_url":"https://baba-s.hatenablog.com/","published":"2022-10-14 17:14:10","title":"\u3010C#\u3011\u914d\u5217\u3084\u30ea\u30b9\u30c8\u306e\u8981\u7d20\u304c\u3059\u3079\u3066\u540c\u3058\u304b\u3069\u3046\u304b\u78ba\u8a8d\u3059\u308b\u65b9\u6cd5","version":"1.0","image_url":null,"author_name":"baba_s","type":"rich","description":"\u6982\u8981 using System.Linq; using UnityEngine; public class Example : MonoBehaviour { private void Awake() { var list1 = new[] { 1, 2, 3 }; var list2 = new[] { 1, 1, 1 }; Debug.Log( list1.Distinct().Count() == 1 ); // False Debug.Log( list2.Distinct().Count() == 1 ); // True } }","blog_title":"\u30b3\u30ac\u30cd\u30d6\u30ed\u30b0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbaba-s.hatenablog.com%2Fentry%2F2022%2F10%2F14%2F171410\" title=\"\u3010C#\u3011\u914d\u5217\u3084\u30ea\u30b9\u30c8\u306e\u8981\u7d20\u304c\u3059\u3079\u3066\u540c\u3058\u304b\u3069\u3046\u304b\u78ba\u8a8d\u3059\u308b\u65b9\u6cd5 - \u30b3\u30ac\u30cd\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","width":"100%","url":"https://baba-s.hatenablog.com/entry/2022/10/14/171410","provider_url":"https://hatena.blog","author_url":"https://blog.hatena.ne.jp/baba_s/"}