コード例 #1
0
 /// <summary>
 /// Method to remove a photo from the photo collection
 /// </summary>
 /// <param name="photo">Photo object to be removed</param>
 public void Remove(Photo photo)
 {
     List.Remove(photo);
 }
コード例 #2
0
 /// <summary>
 /// Method to add photo to the photo collection
 /// </summary>
 /// <param name="photo">Photo object to be added</param>
 public void Add(Photo photo)
 {
     List.Add(photo);
 }