Example #1
0
        private static FileMetadataPairs MergeFileMetadataPairs(string key, MergeContext <FileMetadataPairs> pairs, MergeContext <FileMetadataPairs> overridePairs)
        {
            var mergedItems = pairs.Item.Items.Concat(overridePairs.Item.Items).ToList();

            return(new FileMetadataPairs(mergedItems));
        }
Example #2
0
 private static object MergeGlobalMetadataItem(string key, MergeContext <object> item, MergeContext <object> overrideItem)
 {
     Logger.LogWarning($"Both {item.Name} and {overrideItem.Name} contain definition for \"{key}\", the one from \"{overrideItem.Name}\" overrides the one from \"{item.Name}\".");
     return(overrideItem.Item);
 }