Remove Item
The following code snippet creates a Dictionary and adds an item to it by using the Add method.
Dictionary<string, Int16> AuthorList = new Dictionary<string, Int16>();AuthorList.Add("Mahesh Chand", 35);
The Remove method removes an item with the specified key from the collection. The following code snippet removes an item.
// Remove item with key = 'Mahesh Chand'AuthorList.Remove("Mahesh Chand");
The Clear method removes all items from the collection. The following code snippet removes all items by calling the Clear method.
// Remove all items
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: