public static void SetSettingsFilePath(this AnalysisConfig config, string fileName) { if (config == null) { throw new ArgumentNullException("config"); } if (string.IsNullOrWhiteSpace(fileName)) { throw new ArgumentNullException("fileName"); } config.SetValue(SettingsFileKey, fileName); }