Ejemplo n.º 1
0
        private static List<tagLibrary.Objects.FileTags> ConvertLocalTypesToFileTags(ParallelQuery<tagLibrary.Objects.FileInformationLocalTypes> data)
        {
            var tagInfo = data
                            .AsParallel()
                            .Select(m =>
                            new tagLibrary.Objects.FileTags(
                                m.FileName,
                                m.TagInfo.Genres.ToList(),
                                m.TagInfo.Album,
                                m.Name,
                                m.Properties.AudioBitrate,
                                m.Properties.Duration,

                                m.TagInfo.AlbumArtists.ToList(),
                                m.TagInfo.Track,
                                m.TagInfo.Year
                            )
                            )

                            .ToList();
            return tagInfo;
        }