Проблемы с сериализацией - C#
Формулировка задачи:
Есть такая структура классов
пытаюсь сериализовать, не выходит
такая вот ошибка
[Serializable]
public class ConfigurationList {
public List<Configuration> List { get; set; }
public ConfigurationList() {
List = new List<Configuration>();
}
}
[Serializable]
public class Configuration {
public string DBPath { get; set; }
public string ConfPath { get; set; }
public string ConfUser { get; set; }
public string ConfPass { get; set; }
public string FilePathEXE { get; set; }
public Configuration(string DB, string Path, string User, string Pass, string PathEXE) {
DBPath = DB;
ConfPath = Path;
ConfUser = User;
ConfPass = Pass;
FilePathEXE = PathEXE;
}
public List<string> LoadConfOrder(ref string Log) { ..... }
}var serializer = new XmlSerializer(typeof(ConfigurationList));
"Возникла ошибка при отражении типа "CheckConf.Form1.ConfigurationList"."
Решение задачи: «Проблемы с сериализацией»
textual
Листинг программы
public Configuration() { }