public void UpdateSelection([CanBeNull] Project project, bool value)
        {
            if ((_references == null) || (_referencedBy == null))
            {
                return;
            }

            _references.Concat(_referencedBy)
            // ReSharper disable once PossibleNullReferenceException
            .SelectMany(p => p.DescendantsAndSelf)
            // ReSharper disable once PossibleNullReferenceException
            .ForEach(p => p.IsProjectSelected = value && (p.Project == project));
        }
Exemplo n.º 2
0
 public void UpdateSelection(Project project, bool value)
 {
     _references.Concat(_referencedBy)
     .SelectMany(p => p.DescendantsAndSelf)
     .ForEach(p => p.IsProjectSelected = value && (p.Project == project));
 }