public BuildClassInfo Merge(BuildClassInfo c) { Debug.Assert(Class == c.Class); Debug.Assert(Assignments.Select(a => a.Parameter).Intersect(c.Assignments.Select(a => a.Parameter)).Any() == false); var assignments = Assignments.Concat(c.Assignments).ToList(); return(new BuildClassInfo(Class, assignments)); }