What's the asp.net equivalent for C/C++ #define?
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
精彩评论