src/Microsoft.VisualStudio.ProjectSystem.Managed.VS/ProjectSystem/VS/Tree/Dependencies/Snapshot/IDependencyExtensions.cs
/// <summary>
/// Returns a IDependencyViewModel for given dependency.
/// </summary>
Returns a IDependencyViewModel for given dependency.
Returns a IDependencyViewModel for given dependency .
public static IDependencyViewModel ToViewModel(this IDependency self, ITargetedDependenciesSnapshot snapshot)
        {
            return new DependencyViewModel
            {
                Caption = self.Caption,
                FilePath = self.Id,
                SchemaName = self.SchemaName,
                SchemaItemType = self.SchemaItemType,
                Priority = self.Priority,
                Icon = self.IsOrHasUnresolvedDependency(snapshot) ? self.UnresolvedIcon : self.Icon,
                ExpandedIcon = self.IsOrHasUnresolvedDependency(snapshot) ? self.UnresolvedExpandedIcon : self.ExpandedIcon,
                Properties = self.Properties,
                Flags = self.Flags,
                OriginalModel = self
            };
        }
public static IDependencyViewModel ToViewModel ( this IDependency self , ITargetedDependenciesSnapshot snapshot ) { return new DependencyViewModel { Caption = self . Caption , FilePath = self . Id , SchemaName = self . SchemaName , SchemaItemType = self . SchemaItemType , Priority = self . Priority , Icon = self . IsOrHasUnresolvedDependency ( snapshot ) ? self . UnresolvedIcon : self . Icon , ExpandedIcon = self . IsOrHasUnresolvedDependency ( snapshot ) ? self . UnresolvedExpandedIcon : self . ExpandedIcon , Properties = self . Properties , Flags = self . Flags , OriginalModel = self } ; }
Returns a IDependencyViewModel for given dependency.
Returns a IDependencyViewModel for given dependency .
IDependency
this
snapshot
ITargetedDependenciesSnapshot