public Lyric(string lyric) { startLyric = new LyricConverter(lyric).Get(); if (string.IsNullOrWhiteSpace(startLyric)) { startLyric = lyric; lyricType = LyricType.Other; } this.lyric = startLyric; }
public Lyric(FileInfo file) { string lyric = new StreamReader(file.FullName).ReadToEnd(); startLyric = new LyricConverter(lyric).Get(); if (string.IsNullOrWhiteSpace(startLyric)) { startLyric = lyric; lyricType = LyricType.Other; } this.lyric = startLyric; }