public void Visit(IParameterStartValuesBuildingBlock parameterStartValuesBuilding) { foreach (var parameterStartValue in parameterStartValuesBuilding.OfType <ParameterStartValue>().ToList()) { //psv stored as a cache using path as key parameterStartValuesBuilding.Remove(parameterStartValue); parameterStartValue.Path = parameterStartValue.ContainerPath; parameterStartValuesBuilding.Add(parameterStartValue); } }
private void removeParameterStartValueFor(IParameter parameter, IParameterStartValuesBuildingBlock parameterStartValuesBuildingBlock) { parameterStartValuesBuildingBlock.Remove(_entityPathResolver.ObjectPathFor(parameter)); }