CmisSync.Lib.Config.Config.Load C# (CSharp) Method

Load() private static method

private static Load ( string fullPath ) : Config
fullPath string
return Config
        private static Config Load(string fullPath) {
            XmlSerializer deserializer = new XmlSerializer(typeof(Config));
            Config config;
            using (TextReader textReader = new StreamReader(fullPath)) {
                config = (Config)deserializer.Deserialize(textReader);
            }

            config.fullpath = fullPath;
            config.configPath = Path.GetDirectoryName(fullPath);
            HttpProxyUtils.SetDefaultProxy(config.Proxy);
            return config;
        }