public static void ConvertToVersion(this IEnumerable <TagModel> seq, ID3.Version version) { foreach (var item in seq) { item.ConvertVersion(version); } }
TagCollector TagCollectorByVersion(ID3.Version v) { if (!tagCollectors.ContainsKey(v)) { tagCollectors.Add(v, new TagCollector(v)); } return(tagCollectors[v]); }
public static bool IsVersionUnique(this IEnumerable <TagModel> seq) { ID3.Version v = null; foreach (var item in seq) { if (v == null) { v = item.Version.ValueVersion; } else if (v != item.Version.ValueVersion) { return(false); } } return(true); }
public void ConvertVersion(ID3.Version version) { Debug.Assert(CheckInvariant()); Tag oldTag = ToTag(); Clear(); Tag newTag = oldTag.Clone(); new TagVersionProcessor(version).Process(newTag); DocUtils.PerformAction(this, new TagConversionAction(this, oldTag, newTag)); FromTag(tag); Debug.Assert(CheckInvariant()); }
public static void ConvertToFirstVersion(this IEnumerable <TagModel> seq, ID3.Version v) { seq.ConvertToVersion(v); }
public TagCollector(ID3.Version version) { Version = version; }