SobekCM.Resource_Object.Configuration.Metadata_Configuration.PostUnSerialization C# (CSharp) Méthode

PostUnSerialization() public méthode

Runs a number of post-serialization fixes to ensure the objects in the profiles are the same objects as in the lists of configs
public PostUnSerialization ( ) : void
Résultat void
        public void PostUnSerialization()
        {
            Dictionary<string, METS_Section_ReaderWriter_Config> tempDictionary = new Dictionary<string, METS_Section_ReaderWriter_Config>(StringComparer.OrdinalIgnoreCase);
            foreach (METS_Section_ReaderWriter_Config thisConfig in METS_Section_File_ReaderWriter_Configs)
            {
                tempDictionary[thisConfig.ID] = thisConfig;
            }

            foreach (METS_Writing_Profile thisProfile in MetsWritingProfiles)
            {
                post_unserialization_single_list_fix(tempDictionary, thisProfile.Package_Level_AmdSec_Writer_Configs);
                post_unserialization_single_list_fix(tempDictionary, thisProfile.Package_Level_DmdSec_Writer_Configs);
                post_unserialization_single_list_fix(tempDictionary, thisProfile.Division_Level_AmdSec_Writer_Configs);
                post_unserialization_single_list_fix(tempDictionary, thisProfile.Division_Level_DmdSec_Writer_Configs);
                post_unserialization_single_list_fix(tempDictionary, thisProfile.File_Level_AmdSec_Writer_Configs);
                post_unserialization_single_list_fix(tempDictionary, thisProfile.File_Level_DmdSec_Writer_Configs);
            }
        }