ä»äºå¿ããã®ã§ç¾å®éé¿ã æ¬æ¥ã¯ãé
ç®4 #if ã®ä»£ããã« Conditional å±æ§ã使ç¨ãããã§ãã #if ãªãã㯠C è¨èªã®ããªããã»ããµãªããã§ããªãã¿ãªã®ã§ãããç¥ã£ã¦ããã®ã§ãããConditional å±æ§ã«ã¤ãã¦ã¯å
¨ãç¥ãã¾ããã§ããã public void ShowFunctionName() { #if DEBUG Debug.WriteLine((new StackTrace()).GetFrame(1).GetMethod().Name; #endif } ã¨ãããããã°æã¯ã¹ã¿ãã¯ãã¬ã¼ã¹ãè¦ããã¨ããããããã®ãæ¸ãæãããã¾ããæ¸ç±ã§ã¯ãã®æ¹æ³ã¯åé¡ãèµ·ããå ´åãããã¨æ¸ãã¦ããã¾ãã ãã®å ´åã¯ã¡ã½ããã®å®è£
å
¨ä½ã #if ã§å²ã£ã¦ããã®ã§ãããã§ãããé¨åçã«ãã£ãå ´åã¨ãããã¾ã¼ã«ãã¹ãã¦ä½è¨ãªå¦çã¾ã§ #if ã«å«ããããã¾ãã ããããã®ã
{{#tags}}- {{label}}
{{/tags}}