private void SaveLegacyMetadataFile(IEnumerable <MetadataRecord> records) { using (LegacyMetadataFile metadataFile = new LegacyMetadataFile(m_baseFileName)) { metadataFile.Write(records); metadataFile.Save(); } }
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(); } }