摘要: C#中#region,#if的作用 #region #endregion作用:折叠并隐藏代码 #if #else #endif 作用:控制编译的代码 例如:#if(condition)代码A#else代码B#endif 如果condition为真,则程序编译的时候只编译代码A,如果condition为假,则程序编译的时候只编译代码B 所以,#if#else#endif 只是一个起控制预编译的代码;... 阅读全文
posted @ 2009-11-20 19:49 无业の游民 阅读(214) 评论(0) 推荐(0) 编辑