Merge() public static method

public static Merge ( SettingsDetails settings1, SettingsDetails settings2 ) : SettingsDetails
settings1 SettingsDetails
settings2 SettingsDetails
return SettingsDetails
Example #1
0
        private static SettingsDetails AddGlobalSettings(SettingsDetails solutionSettings, string arnolyzerHome)
        {
            if (solutionSettings.IgnoreArnolyzerHome)
            {
                return(solutionSettings);
            }

            var globalSettings = LoadGloablSettingsIfExistsOrDefaultIfNot(arnolyzerHome);

            return(SettingsDetails.Merge(solutionSettings, globalSettings));
        }
Example #2
0
        private static SettingsDetails AddSolutionWideSettings(string filePath,
                                                               SettingsDetails projectSettings,
                                                               string settingsFileName)
        {
            if (projectSettings.DoNotTraverse)
            {
                return(projectSettings);
            }

            var solutionSettings = TraversePathToFindCollocatedSettings(new FileInfo(filePath).Directory,
                                                                        settingsFileName,
                                                                        ".sln");

            return(SettingsDetails.Merge(projectSettings, solutionSettings));
        }