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.
精彩评论