public static bool TryParse(string str, out YouTubeVideoPart part) { part = Values.FirstOrDefault(temp => temp.Name == str); return part != null; }
/// <summary> /// Adds the specified part to the collection. /// </summary> /// <param name="part">The part to add.</param> public void Add(YouTubeVideoPart part) { _list.Add(part); }