PC Review


Reply
Thread Tools Rate Thread

Delete key from Dictionary (C# 2.0)

 
 
Luigi
Guest
Posts: n/a
 
      14th Oct 2008
Hi all,
I have a dictionary like this:

Dictionary<string, Objects>

How can I remove a key - and the associated values - from a dictionary?

Thanks in advance.
--
Luigi

 
Reply With Quote
 
 
 
 
Hans Kesting
Guest
Posts: n/a
 
      14th Oct 2008
It happens that Luigi formulated :
> Hi all,
> I have a dictionary like this:
>
> Dictionary<string, Objects>
>
> How can I remove a key - and the associated values - from a dictionary?
>
> Thanks in advance.


var dict = new Dictionary<string, object>();
// ...
dict.Remove("theKeyToRemove");


Hans Kesting


 
Reply With Quote
 
Peter Morris
Guest
Posts: n/a
 
      14th Oct 2008
Google for
C# dictionary msdn

first hit, then look at the methods.



--
Pete
====
http://mrpmorris.blogspot.com
http://www.capableobjects.com
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to delete a word from the dictionary Jerald Eugene Fox Microsoft Word Document Management 2 17th Mar 2009 05:19 PM
Delete a word from dictionary Zeemboomba Microsoft Word Document Management 5 31st Dec 2008 04:23 PM
How to delete a word not in dictionary? =?Utf-8?B?THV0aGllbg==?= Microsoft Word Document Management 2 5th Jun 2007 09:23 PM
Delete dictionary word =?Utf-8?B?d3dldHplbA==?= Microsoft Powerpoint 1 1st Apr 2005 05:40 PM
Re: How do I delete words from my dictionary? Perdita X. Dream Windows XP Customization 0 6th Sep 2003 09:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:41 PM.