Ejemplo n.º 1
0
 ///<summary>
 ///Removes the first occurrence of a specific object from the <see cref="T:System.Collections.Generic.ICollection`1" />.
 ///</summary>
 ///
 ///<returns>
 ///true if <paramref name="item" /> was successfully removed from the <see cref="T:System.Collections.Generic.ICollection`1" />; otherwise, false. This method also returns false if <paramref name="item" /> is not found in the original <see cref="T:System.Collections.Generic.ICollection`1" />.
 ///</returns>
 ///
 ///<param name="item">The object to remove from the <see cref="T:System.Collections.Generic.ICollection`1" />.</param>
 ///<exception cref="T:System.NotSupportedException">The <see cref="T:System.Collections.Generic.ICollection`1" /> is read-only.</exception>
 public bool Remove(T item)
 {
     if (Contains(item))
     {
         quadTreeRoot.Delete(wrappedDictionary[item], true);
         wrappedDictionary.Remove(item);
         return(true);
     }
     else
     {
         return(false);
     }
 }