Пример #1
0
 private void SaveLegacyMetadataFile(IEnumerable <MetadataRecord> records)
 {
     using (LegacyMetadataFile metadataFile = new LegacyMetadataFile(m_baseFileName))
     {
         metadataFile.Write(records);
         metadataFile.Save();
     }
 }
Пример #2
0
        private void SaveLegacyMetadataFile()
        {
            using (LegacyMetadataFile metadataFile = new LegacyMetadataFile(m_baseFileName))
            {
                foreach (KeyValuePair <int, MetadataRecord> record in m_records)
                {
                    metadataFile.Write(record.Key, record.Value);
                }

                metadataFile.Save();
            }
        }