每个人都有自己的知识体系。
Toggle navigation
Home
随笔
C#/.Net
树莓派 / Raspberry
皓月汉化组
Beego
Golang
OxideMod
apache
haproxy
windows
Java
Objective-C
日语/罗马音歌词/日语常识
MongoDB
python
电学
公告
Minecraft服务器-公告
NanoPi
C4D (CINEMA 4D)
生活
推流/m3u8/rtmp/rtsp
Unity3d
ffmpeg
数据结构
区块链
tarui
UnityForPSVita
About Me
Archives
Tags
C# 预处理器指令
2018-06-04 11:33:39
194
0
0
akiragatsu
预处理命令 #if #else #elif #endif #define #undef #warning #error #line #region #endregion #pragma #pragma warning #pragma checksum 参考 msdn 文档: https://docs.microsoft.com/zh-cn/dotnet/csharp/language-reference/preprocessor-directives/ #if //如果在调试环境下 #if DEBUG Console.WriteLine("Debug version"); #endif //判断框架版本 //如果在.net 4.7版本下 #if NET47 Console.WriteLine("Debug version"); #endif 目标框架 :符号 .NET Framework :NET20, NET35, NET40, NET45, NET451, NET452, NET46, NET461, NET462, NET47, NET471, NET472 .NET Standard: NETSTANDARD1_0, NETSTANDARD1_1, NETSTANDARD1_2, NETSTANDARD1_3, NETSTANDARD1_4, NETSTANDARD1_5, NETSTANDARD1_6, NETSTANDARD2_0 .NET 核心 :NETCOREAPP1_0, NETCOREAPP1_1, NETCOREAPP2_0, NETCOREAPP2_1 #define VC7 //... //#elif #else 的使用 #if debug Console.Writeline("Debug build"); #elif VC7 Console.Writeline("Visual Studio 7"); #endif
Pre:
C#等语言 反射机制实现简单 智能语音人机交互(1)-- 皓月
Next:
DAPP和智能合约 基本概念
0
likes
194
Weibo
Wechat
Tencent Weibo
QQ Zone
RenRen
Submit
Sign in
to leave a comment.
No Leanote account?
Sign up now.
0
comments
More...
Table of content
No Leanote account? Sign up now.