开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜