public WordMap(IDictionary <FrameMeaning, string> items) { Items = new Dictionary <FrameMeaning, string>(); foreach (var item in items) { if (item.Key == FrameMeaning.TrackNumber) { Items[item.Key] = Id3FileUtils.FixName(TrackNumberGenerator.NumberOfTrack(item.Value)); } else { Items[item.Key] = Id3FileUtils.FixName(item.Value); } } }
public string Name(IDictionary <FrameMeaning, string> words) { WordMap wordMap = new WordMap(words); return(Id3FileUtils.RemoveTrailingPeriods(Pattern.ToString(wordMap.Items))); }