private Style ParseStyle(Match match, SubtitleFormat subtitleFormat) { string styleText = String.Empty; if (ParseGroup(match, "Style", ref styleText)) { return(subtitleFormat.StringToStyle(styleText)); } else { return(new Style()); } }