private void OfferMortgageOptions(IPropertyGroup propertyGroup)
 {
     foreach (var property in propertyGroup)
     {
         OfferMortgageOption(property);
     }
 }
Пример #2
0
        public Property(XElement xml, IPropertyGroup group)
        {
            Group = group;

            Name  = xml.Name.LocalName;
            Value = xml.Value;
        }
Пример #3
0
            public ProjectProperty([NotNull] ProjectFile projectFile, [NotNull] IPropertyGroup group, [NotNull] XElement node, [NotNull] string name)
            {
                _projectFile = projectFile;
                _node        = node;

                Group = group;
                Name  = name;
            }
Пример #4
0
        /// <summary>
        /// Evaluates the given property group using the given environment and places all evaluated property values
        /// back into the environment.
        /// </summary>
        /// <param name="group"></param>
        /// <param name="environment"></param>
        /// <returns></returns>
        public void Evaluate(IPropertyGroup group, BuildEnvironment environment)
        {
            if (group.Condition != null && !EvaluateCondition(group.Condition, environment))
            {
                return;
            }

            foreach (var property in group)
            {
                Evaluate(property, environment);
            }
        }
        public static bool MatchesConfiguration([NotNull] this IPropertyGroup propertyGroup, [CanBeNull] string configuration, [CanBeNull] string platform)
        {
            var conditionExpression = propertyGroup.ConditionExpression;

            if (string.IsNullOrEmpty(conditionExpression))
            {
                return(string.IsNullOrEmpty(configuration) && string.IsNullOrEmpty(platform));
            }

            return(conditionExpression.ParseCondition(out var groupConfiguration, out string groupPlatform) &&
                   configuration == groupConfiguration &&
                   platform == groupPlatform);
        }
Пример #6
0
 void IPropertyGroup.SetParent(IPropertyGroup parent) => _parentPropertyGroup = parent;