开发者

What's the asp.net equivalent for C/C++ #define?

开发者 https://www.devze.com 2023-01-01 14:36 出处:网络
Can 开发者_StackOverflowyou guys let me know the asp.net equivalent for C/C++ #define? ThanksC# has #define for conditional compilation, but it can only be defined (or not); there is no other value.Fo

Can 开发者_StackOverflowyou guys let me know the asp.net equivalent for C/C++ #define? Thanks


C# has #define for conditional compilation, but it can only be defined (or not); there is no other value. For constants, you just use const or readonly as appropriate.


Generally const - see similar question: http://bytes.com/topic/c-sharp/answers/224517-c-equivalent-cs-define

0

精彩评论

暂无评论...
验证码 换一张
取 消