C#プリプロセッサディレクティブ - 研究

 

使用方法について学習するにはC#プリプロセッサディレクティブをコードセグメントをコンパイルするために選択し、参照の#defineを(C#リファレンス)の#if(C#リファレンス)

#define(C#リファレンス)

住所:HTTPS://docs.microsoft.com/zh-cn/dotnet/csharp/language-reference/preprocessor-directives/preprocessor-define

#if(C#リファレンス)

住所:HTTPS://docs.microsoft.com/zh-cn/dotnet/csharp/language-reference/preprocessor-directives/preprocessor-if

私たちは、この知識を習得する必要があります。

記事:C#プリプロセッサディレクティブ

録音時間:20190917

 --------------------

のみデバッグモードで実行するコードを変更します

 #if DEBUG 
    Console.WriteLineを(" デバッグバージョン" )。
 #endifの

 

おすすめ

転載: www.cnblogs.com/Tpf386/p/11535313.html