Beispiel #1
0
        public static IEnumerable <string> GetBucketDescriptions(this PlaylistBucket bucket)
        {
            IEnumerable <PlaylistBucket> buckets = bucket.GetBuckets();

            foreach (PlaylistBucket b in buckets)
            {
                yield return(GetDescription(b));
            }
        }
Beispiel #2
0
        public static IEnumerable <PlaylistBucket> GetBuckets(this PlaylistBucket bucket)
        {
            string[] buckets = bucket.ToString().Split(',');

            foreach (string s in buckets)
            {
                PlaylistBucket parsed;
                if (Enum.TryParse(s.Trim(), out parsed))
                {
                    yield return(parsed);
                }
            }
        }