От: | Michael7 | ||
Дата: | 07.12.16 11:26 | ||
Оценка: |
using System.Configuration;
...
class Program
{
static string appconfigfile = "myprogram.exe.config";
static Configuration config = ConfigurationManager.OpenExeConfiguration(appconfigfile);
static string server = config.AppSettings["ServerName"];
Ошибка 1 "System.Configuration.ConfigurationElement.this[string]" недоступен из-за его уровня защиты