public void RemovedFromProject() { _analysisVersion = -1; foreach (var aggregatedInto in _aggregates) { if (aggregatedInto.AnalysisVersion != -1) { ProjectState.ClearAggregate(aggregatedInto); aggregatedInto.RemovedFromProject(); } } }