public ProjectProperty(ProjectFile projectFile, XElement node) { Contract.Requires(projectFile != null); Contract.Requires(node != null); _projectFile = projectFile; _node = node; }
public ItemDefinitionGroup([NotNull] ProjectFile projectFile, [NotNull] XElement node) : base(projectFile, node) { Items.AddRange(EnumerateProperties(projectFile, node)); }
public ProjectPropertyGroup(ProjectFile projectFile, XElement propertyGroupNode) { Contract.Requires(projectFile != null); Contract.Requires(propertyGroupNode != null); _projectFile = projectFile; _propertyGroupNode = propertyGroupNode; _properties = new ObservableCollection<ProjectProperty>( _propertyGroupNode.Elements() .Where(node => node.GetAttribute(ConditionAttributeName) == null) .Select(node => new ProjectProperty(projectFile, node))); }
private IEnumerable <ProjectProperty> EnumerateProperties([NotNull] ProjectFile projectFile, [NotNull] XElement groupNode) { return(groupNode.Elements() .Where(node => node != null && node.GetAttribute(ConditionAttributeName) == null) .Select(propertyNode => new ProjectProperty(projectFile, this, propertyNode, propertyNode.Name.LocalName))); }