Esempio n. 1
0
 /// <summary>
 /// Removes a SelectMapField item to the collection.
 /// </summary>
 /// <param name="item">The item to remove.</param>
 public void Remove(SelectMapField item)
 {
     if (item == null)
     {
         throw new ArgumentNullException("item");
     }
     List.Remove(item);
 }
Esempio n. 2
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(SelectMapField item)
 {
     if (IndexOf(item) == -1)
     {
         return(false);
     }
     else
     {
         return(true);
     }
 }
Esempio n. 3
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(SelectMapField item)
 {
     return(List.IndexOf(item));
 }