Esempio n. 1
0
        private IEnumerable <ProjectPropertyName> GetProjectProperties()
        {
            Contract.Ensures(Contract.Result <IEnumerable <ProjectPropertyName> >() != null);

            return(_projects
                   .SelectMany(prj => ProjectConfigurations.SelectMany(cfg => cfg.Properties.Values))
                   .Select(prop => prop.Name)
                   .Distinct()
                   .Where(PropertyGroupName.IsNotProjectSpecific)
                   .Select(name => new ProjectPropertyName(name, PropertyGroupName.GetGroupForProperty(name)))
                   .OrderBy(item => item.GroupName.Index));
        }
Esempio n. 2
0
        internal ProjectPropertyName([NotNull] IProjectProperty property)
        {
            Name = property.Name;
            var label = property.Group.Label;

            GroupName   = !string.IsNullOrEmpty(label) ? new PropertyGroupName(label) : PropertyGroupName.GetGroupForProperty(Name);
            DisplayName = GetDisplayName(Name, GroupName.Name);
        }