///<summary>Checks whether a settings category is safe to load from untrusted data.</summary> ///<returns>False if the category contains properties that could allow an attacker to do harm.</returns> public static bool IsAllowed(SettingsSection section) { return(!unsafeSubcategories.Contains(section.Subcategory)); }