예제 #1
0
 public VideoType[] GetVideoTypes()
 {
     return(string.IsNullOrEmpty(VideoTypes)
         ? Array.Empty <VideoType>()
         : VideoTypes.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries)
            .Select(v => Enum.Parse <VideoType>(v, true)).ToArray());
 }
예제 #2
0
        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());
        }