public static T CreateOrOpenSection <T>(string sectionName) where T : ASettingsSection, new() { T section = s_File.CreateOrOpenSection <T>(sectionName); // Resubscribe incase this is called for a section 2 times. section.Invalidated -= OnSectionInvalidated; section.Invalidated += OnSectionInvalidated; section.PropertyChanged -= OnSectionPropertyChanged; section.PropertyChanged += OnSectionPropertyChanged; return(section); }