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

AreSectionAttributesModified() private method

private AreSectionAttributesModified ( SectionRecord sectionRecord, ConfigurationSection configSection ) : bool
sectionRecord SectionRecord
configSection ConfigurationSection
return bool
        private bool AreSectionAttributesModified(SectionRecord sectionRecord, ConfigurationSection configSection) {
            string configSource;
            string protectionProviderName;

            if (sectionRecord.HasFileInput) {
                SectionXmlInfo sectionXmlInfo = sectionRecord.FileInput.SectionXmlInfo;
                configSource = sectionXmlInfo.ConfigSource;
                protectionProviderName = sectionXmlInfo.ProtectionProviderName;
            }
            else {
                configSource = null;
                protectionProviderName = null;
            }

            return 
                   !StringUtil.EqualsNE(configSource, configSection.SectionInformation.ConfigSource)
                || !StringUtil.EqualsNE(protectionProviderName, configSection.SectionInformation.ProtectionProviderName)
                || AreLocationAttributesModified(sectionRecord, configSection);
        }