void IIsPropertyValid.SetPropertyValid(string name) { if (!_validProperties.Contains(name)) { _validProperties.Add(name); } }
private void AddPropertyWithDependencies(ref InPlaceList <string> properties, int startIndex, string propertyName) { if (properties.Contains(propertyName, startIndex, properties.Count - startIndex)) { return; } properties.Add(propertyName); foreach (var dep in _dependencies) { if (dep.Source == null && dep.SourceProperty == propertyName) { AddPropertyWithDependencies(ref properties, startIndex, dep.TargetProperty); } } }