コード例 #1
0
 /// <summary>
 /// Removes the element with the specified key from the <see cref="T:System.Collections.Generic.IDictionary`2" />.
 /// </summary>
 /// <param name="key">The key of the element to remove.</param>
 /// <returns>
 /// true if the element is successfully removed; otherwise, false.  This method also returns false if <paramref name="key" /> was not found in the original <see cref="T:System.Collections.Generic.IDictionary`2" />.
 /// </returns>
 /// <exception cref="System.NotImplementedException"></exception>
 public bool Remove(TK1 key)
 {
     return(SubDictionary.Remove(IntCast(key)));
 }
コード例 #2
0
 /// <summary>
 /// Removes the first occurrence of a specific object from the <see cref="T:System.Collections.Generic.ICollection`1" />.
 /// </summary>
 /// <param name="item">The object to remove from the <see cref="T:System.Collections.Generic.ICollection`1" />.</param>
 /// <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>
 /// <exception cref="System.NotImplementedException"></exception>
 public bool Remove(KeyValuePair <TK1, TV1> item)
 {
     return(SubDictionary.Remove(IntCast(item)));
 }