å æ¥TOACHã§ç´¹ä»ããLINQã®å ¥éè¨äºã¯ãããããã¾ã§å¤ãã®äººã«èªãã§ããããããã ã Hello LINQ world. éæ®ã£ããC#ã³ã¼ãããåæ¥ãããã¢ãã¿ã¸ãLINQ åºæ¬ã®4ã¤ã ãã®LINQã®ç¬¬ä¸æ©ã§ã¯ãAnyãSelectãWhereãFirstOrDefaultã¨ããï¼ã¤ã®åºæ¬çãªã¡ã½ãããç´¹ä»ããã ä»åã¯ãããå°ãè¾¼ã¿å ¥ã£ããã¨ãããã¨ãã«ä½¿ããã¡ã½ããã説æãããã éè¤ãåãé¤ã -Distinct- é åä¸ã®éè¤ãã¦ããè¦ç´ ãåãè¾¼ãã§ãã¦ãã¼ã¯ãªè¦ç´ ã ãã«ãã¦ããããµãããªã¡ã½ããã ä½ä¾ã§ã¯ã[0, 1, 2, 2, 3, 4] ãªãâ2â³ãéè¤ãã¦ããé åã«Distinctãããã[0, 1, 2, 3, 4]ã¨ããéè¤ã®ãªãç¶æ ã«ãã¦ãããvar numbers = new[] { 0, 1, 2, 2, 3, 4 }; // This contai
{{#tags}}- {{label}}
{{/tags}}