private void SetRanges(IEnumerable <fsParameterRange> ranges) { foreach (fsParameterRange parameterRange in ranges) { if (Ranges.ContainsKey(parameterRange.Identifier)) { Ranges[parameterRange.Identifier] = parameterRange; } else { Ranges.Add(parameterRange.Identifier, parameterRange); } } }