public void Replace(ContentSpec existing, Content n) { Contents.Remove(existing); Contents.Add(new ContentSpec(n, existing.Constraint)); } }