public void Merge(SumKeys group) { foreach (var value in Items(group)) { if (!this.Contains(value)) { this.Add(value); } } }
private static IEnumerable <SqlInt32> Items(SumKeys group) { foreach (var value in group.result.Value.Split(sep)) { int i; if (Int32.TryParse(value, out i)) { yield return(i); } } }