Пример #1
0
        private void CompareMultiMaps()
        {
            var existingMultiMapValues = _mpMapsData.GetSectionData(Keys.MultiMaps).Keys.Select(key => key.Value).ToList();
            var newMultiMapValues      = _mpMapsBaseData.GetSectionData(Keys.MultiMaps).Keys.Select(key => key.Value).ToList();

            _missingMapKeys = existingMultiMapValues.Where(value => !newMultiMapValues.Contains(value)).ToList();
            _addedMapKeys   = newMultiMapValues.Where(value => !existingMultiMapValues.Contains(value)).ToList();

            ReportMissingMaps();
            ReportAddedMaps();
        }
Пример #2
0
 public static string GetSectionKeyValue(this IniData ini, string sectionKey, string valueKey) => ini.GetSectionData(sectionKey).GetKeyValue(valueKey);