public VideoType[] GetVideoTypes() { return(string.IsNullOrEmpty(VideoTypes) ? Array.Empty <VideoType>() : VideoTypes.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries) .Select(v => Enum.Parse <VideoType>(v, true)).ToArray()); }
public VideoType[] GetVideoTypes() { if (string.IsNullOrEmpty(VideoTypes)) { return(Array.Empty <VideoType>()); } return(VideoTypes.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries).Select(v => (VideoType)Enum.Parse(typeof(VideoType), v, true)).ToArray()); }