{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbaba-s.hatenablog.com%2Fentry%2F2019%2F12%2F25%2F080000\" title=\"\u3010Unity\u3011LINQ \u306e\u62e1\u5f35\u30e1\u30bd\u30c3\u30c9\u3092\u81ea\u4f5c\u3057\u3066 GC Alloc \u3092\u6e1b\u3089\u3059\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>","published":"2019-12-25 08:00:00","author_name":"baba_s","provider_name":"Hatena Blog","height":"190","width":"100%","description":"\u6982\u8981 using System.Linq; using UnityEngine; public class Example : MonoBehaviour { private static string[] m_list = { \"\u30d5\u30b7\u30ae\u30c0\u30cd\", \"\u30d5\u30b7\u30ae\u30bd\u30a6\", \"\u30d5\u30b7\u30ae\u30d0\u30ca\", }; private void Update() { var name = \"\u30d4\u30ab\u30c1\u30e5\u30a6\"; var result = m_list.Where( c => c == name ); } } \u901a\u5e38\u306e LINQ \u3092\u305d\u306e\u307e\u307e\u4f7f\u7528\u3059\u308b\u3068 184 B \u306e GC Alloc \u304c\u767a\u751f\u3057\u307e\u3059\u304c using System; usi\u2026","author_url":"https://blog.hatena.ne.jp/baba_s/","blog_url":"https://baba-s.hatenablog.com/","type":"rich","blog_title":"\u30b3\u30ac\u30cd\u30d6\u30ed\u30b0","categories":["Unity","C#","Unity - \u6700\u9069\u5316"],"version":"1.0","provider_url":"https://hatena.blog","title":"\u3010Unity\u3011LINQ \u306e\u62e1\u5f35\u30e1\u30bd\u30c3\u30c9\u3092\u81ea\u4f5c\u3057\u3066 GC Alloc \u3092\u6e1b\u3089\u3059\u65b9\u6cd5","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/b/baba_s/20191224/20191224120913.png","url":"https://baba-s.hatenablog.com/entry/2019/12/25/080000"}