dictionary class : Remove(string) method
Description
Removes the value with the specified key.
Syntax
dictionaryInstance.Remove(string key)
Arguments
Class | Name | Description |
string | key | Key to be searched. |
Return value
Class | Description |
bool | Value that indicates whether the removing was success. |
Sample code
//anyDictionary is a instance of dictionary{string} type.
bool success = anyDictionary.Remove("ww");
Notes
It's a wrapper of the System.Collections.Generic.Dictionary<TKey, TValue>.Remove(TKey).