ã¯ããã«
ãä¸ã®ä¸ã«ã¯ãä¸è¦ããã¨ä¸æè°ã§ããããªãã¯ãç¥ãã°ããã§ããªãã¨ãããã®ãããã¾ãããã¸ãã¯ãªã©ã¯ã¾ãã«ããã§ããã.NET Frameworkã«ãåããããªå´é¢ãããã¾ãããã®è¨äºã§ã¯ãã©ã ãå¼ã«ã¤ãã¦å°ãè¸ã¿è¾¼ãã§å¦ç¿ãã¾ããé¢æ°åæ§ç¯ãå©ç¨ãã¦ã©ã ãå¼ãåçã«æ§ç¯ããæ¹æ³ãç´¹ä»ãã¾ããç¾å®çã«ã¯ããã®ãããªæ¹æ³ã§ã©ã ãå¼ãæ§ç¯ãããã¨ã¯ã¾ãã§ããããããããã©ã ãå¼ã¯åªããæ©è½ã§ãããã®è¨äºã§ã¯ã©ã ãå¼ã«ã¤ãã¦è©³ããå¦ç¿ãããã¨ã§ã.NETã®éçºè ãã©ã ãå¼ãç解ããã³ã¼ãå ã§ããå°ãä¸æã«ãããå°ãé »ç¹ã«ã©ã ãå¼ã使ç¨ã§ããããã«ãªãããã®ãæä¼ãããããã¨æãã¾ãã
ãä¸è¬çã«ãé¢æ°åæ§ç¯ã使ç¨ããéã«ã¯ãæ§ç¯ããå¼ã®åè¦ç´ ã«å¯¾ãã¦é¢æ°ãå¼ã³åºãå¿
è¦ãããã¾ããã©ã ãå¼ã®å ´åã¯ããã©ã¡ã¼ã¿ãå®æ°ãäºé
æ¼ç®ãªã©ãçæããããã¹ã¦ã®è¦ç´ ã«ã¤ãã¦é¢æ°ãå¼ã³åºãã¾ããã©ã ãå¼ãåçã«æ§ç¯ããã¡ã½ããã¯ãSystem.Linq.Expressions
åå空éã«å®ç¾©ããã¦ãã¾ãã
ã©ã ãå¼ã®ãããã
ãã©ã ãå¼ã¯æ´å²çã«ãé¢æ°ãã¤ã³ã¿ãããªã²ã¼ããå¿åã¡ã½ããã¨çºå±ããæå¾ã«ãã©ãã¤ãããã®ã§ãã端çã«è¨ãã°ãã©ã ãå¼ã¯é¢æ°ãç°¡ç¥åããè¨æ³ã§ããæã大ããªéãã¯ãã©ã ãå¼ã使ç¨ããã¨ãé¢æ°ãè¨è¿°ããéã®æéã®ã»ã¨ãã©ãçããã¨ãã§ããç¹ã«ããã¾ãã次ã®ä¾ã¯ãåç´ãªäºé æ¼ç®ï¼ã以ä¸ãã®å¤å®ï¼ãå®è¡ããé¢æ°ã¨ãåãåä½ãã©ã ãå¼ã§è¨è¿°ãããã®ã§ãã
Function LessThanOrEqualTo(ByVal i As Integer) As Boolean Return i <= 7 End Function Dim lambda As Func(Of Integer, Boolean) = Function(i) i < 7
ãLessThanOrEqualTo
é¢æ°ã§ããlambda
ã¨ããã©ã ãå¼ï¼ã¸ã§ããªãã¯ããªã²ã¼ãã¨ãã¦å®ç¾©ï¼ã§ããåã解ãå¾ããã¾ãã