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);
}