开发者

declare variable and save data in variable

开发者 https://www.devze.com 2023-03-16 06:52 出处:网络
I want to declare a variable that accept 0,1,-1 but want this variable hold these data (0,1,-1)like database.

I want to declare a variable that accept 0,1,-1 but want this variable hold these data (0,1,-1)like database. at first i thought to declare this variable in App.config but App.config i开发者_如何学Cs read only. I don't want insert these data in database or in text or XML i want to put these data in source program that any one cant access to them


Configuration Settings are cached in the memory when you starts the application. you can deal with the app.config file as xml to change the values. So you can make changes to it and add you variables to it, they will be reflected the next time you start your application.

0

精彩评论

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

关注公众号