public IGeneratorConfiguration BuildConfiguration() { var @namespace = config.GetString(ConfigUtils.DefaultSection, "namespace") ?? DwcaNamespace; var pascalCase = config.GetBoolean(ConfigUtils.DefaultSection, "pascalCase") ?? true; var termAttribute = Enum.Parse <TermAttributeType>(config.GetString(ConfigUtils.DefaultSection, "termAttribute") ?? "none"); var output = config.GetString(ConfigUtils.DefaultSection, "output") ?? "."; var mapMethod = config.GetBoolean(ConfigUtils.DefaultSection, "mapMethod") ?? false; return(BuildConfiguration(@namespace, pascalCase, termAttribute, output, mapMethod)); }