Пример #1
0
        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);
                }
            }
        }