예제 #1
0
 /// <summary>
 /// Removes a ChangeRegistration item to the collection.
 /// </summary>
 /// <param name="item">The item to remove.</param>
 public void Remove(ChangeRegistration item)
 {
     if (item == null)
     {
         throw new ArgumentNullException("item");
     }
     List.Remove(item);
 }
예제 #2
0
 /// <summary>
 /// Inserts a ChangeRegistration instance into the collection.
 /// </summary>
 /// <param name="item">The item to add.</param>
 public void Insert(int index, ChangeRegistration item)
 {
     if (item == null)
     {
         throw new ArgumentNullException("item");
     }
     List.Insert(index, item);
 }
예제 #3
0
 /// <summary>
 /// Adds a ChangeRegistration instance to the collection.
 /// </summary>
 /// <param name="item">The item to add.</param>
 public int Add(ChangeRegistration item)
 {
     if (item == null)
     {
         throw new ArgumentNullException("item");
     }
     return(List.Add(item));
 }
예제 #4
0
 /// <summary>
 /// Discovers if the given item is in the collection.
 /// </summary>
 /// <param name="item">The item to find.</param>
 /// <returns>Returns true if the given item is in the collection.</returns>
 public bool Contains(ChangeRegistration item)
 {
     if (IndexOf(item) == -1)
     {
         return(false);
     }
     else
     {
         return(true);
     }
 }
예제 #5
0
 /// <summary>
 /// Returns the index of the item in the collection.
 /// </summary>
 /// <param name="item">The item to find.</param>
 /// <returns>The index of the item, or -1 if it is not found.</returns>
 public int IndexOf(ChangeRegistration item)
 {
     return(List.IndexOf(item));
 }