コード例 #1
0
 public static bool TryParse(string str, out YouTubeVideoPart part) {
     part = Values.FirstOrDefault(temp => temp.Name == str);
     return part != null;
 }
コード例 #2
0
 /// <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);
 }