Esempio n. 1
0
        private bool TryLoadSettings(out string error)
        {
            if (this.allSettings == null)
            {
                FileBasedDictionary <string, string> config = null;
                if (FileBasedDictionary <string, string> .TryCreate(
                        tracer: null,
                        dictionaryPath: this.configFile,
                        fileSystem: this.fileSystem,
                        output: out config,
                        error: out error,
                        keyComparer: StringComparer.OrdinalIgnoreCase))
                {
                    this.allSettings = config;
                    return(true);
                }

                return(false);
            }

            error = null;
            return(true);
        }