private List VerifyScreenProperty()

in Tools/Core/Microsoft.PowerApps.Tools.AppChangeManager/ChangeManager.cs [221:262]


        private List<ExtendedScript> VerifyScreenProperty(Entity screen, Entity screenDefault)
        {
            var result = new List<ExtendedScript>();

            var designProperty = screen.Rules?
                .Where(r => r.Category == Constants.PropertyCategory.Design
                && !ExecludedScreenProperty.Contains(r.Property))
                .Select(r => r);

            var behaviorProperty = screen.Rules?
                .Where(r => r.Category == Constants.PropertyCategory.Behavior)
                .Select(r => r);

            foreach (var property in designProperty)
            {
                var propValue = screenDefault.Rules.Find(r => r.Property == property.Property);
                if (propValue != null && !property.InvariantScript.Trim().ToUpper()
                    .Equals(propValue?.InvariantScript.Trim().ToUpper()))
                {
                    result.Add(new ExtendedScript
                    {
                        Property = property.Property,
                        InvariantScript = property.InvariantScript,
                        DefaultSetting = propValue.InvariantScript
                    });
                }
            }

            foreach (var property in behaviorProperty)
            {
                if (!string.IsNullOrWhiteSpace(property.InvariantScript))
                {
                    result.Add(new ExtendedScript
                    {
                        Property = property.Property,
                        InvariantScript = property.InvariantScript
                    });
                }
            }

            return result;
        }