Example #1
0
        public static Track ToTitleCase(this Track track)
        {
            track.Performer  = WordUtils.ToTitleCase(track.Performer);
            track.SongWriter = WordUtils.ToTitleCase(track.SongWriter);
            track.Title      = WordUtils.ToTitleCase(track.Title);

            return(track);
        }
Example #2
0
        public static CueSheet.CueSheet ToTitleCase(this CueSheet.CueSheet cueSheet)
        {
            cueSheet.Performer  = WordUtils.ToTitleCase(cueSheet.Performer);
            cueSheet.SongWriter = WordUtils.ToTitleCase(cueSheet.SongWriter);
            cueSheet.Title      = WordUtils.ToTitleCase(cueSheet.Title);
            cueSheet.Files.SelectMany(file => file.Tracks).ToList().ForEach(x => x.ToTitleCase());

            return(cueSheet);
        }