System.Configuration.MgmtConfigurationRecord.AreLocationAttributesModified C# (CSharp) Method

AreLocationAttributesModified() private method

private AreLocationAttributesModified ( SectionRecord sectionRecord, ConfigurationSection configSection ) : bool
sectionRecord SectionRecord
configSection ConfigurationSection
return bool
        private bool AreLocationAttributesModified(SectionRecord sectionRecord, ConfigurationSection configSection) {
            bool allowOverride;
            bool inheritInChildApplications;

            if (sectionRecord.HasFileInput) {
                SectionXmlInfo sectionXmlInfo = sectionRecord.FileInput.SectionXmlInfo;
                allowOverride = !sectionXmlInfo.LockChildren;
                inheritInChildApplications = !sectionXmlInfo.SkipInChildApps;
            }
            else {
                allowOverride = true;
                inheritInChildApplications = true;
            }

            return  
                   (allowOverride != configSection.SectionInformation.AllowOverride)
                || (inheritInChildApplications != configSection.SectionInformation.InheritInChildApplications);
        }