How to define constants in Visual C# like #define in C?

后端 未结 7 901
情歌与酒
情歌与酒 2020-12-29 18:53

In C you can define constants like this

#define NUMBER 9

so that wherever NUMBER appears in the program it is replaced with 9. But Visual

7条回答
提交回复
热议问题