private static AgentConfig LoadSerializedInfo(AgentConfig ac) { foreach (var _info in ac._info) { var infoProperties = GetProperties(_info.Value); var infoSettings = new InfoSettings(infoProperties); infoSettings.TargetSettings = new Dictionary<string, Dictionary<string, string>>(); var targetSettings = new Dictionary<string, string>(); foreach (var target in GetTargets(_info.Value)) infoSettings.TargetSettings.Add(target.Key, targetSettings); infoSettings.ParseRaw(); ac.Info.Add(_info.Key, infoSettings); } return ac; }