Click here to Skip to main content
15,897,371 members
Home / Discussions / C#
   

C#

 
GeneralRe: Movie from bmp files. bmp to tiff, mp4, or other formats Pin
ThorTheBraveGod5-Jan-10 6:32
ThorTheBraveGod5-Jan-10 6:32 
QuestionSliding Forms in windows mobile Pin
mahmoud ankeer4-Jan-10 7:14
mahmoud ankeer4-Jan-10 7:14 
QuestionRemoving values in a dictionary [modified] Pin
Paul Harsent4-Jan-10 4:55
Paul Harsent4-Jan-10 4:55 
AnswerRe: Removing values in a dictionary Pin
Luc Pattyn4-Jan-10 5:12
sitebuilderLuc Pattyn4-Jan-10 5:12 
AnswerRe: Removing values in a dictionary Pin
OriginalGriff4-Jan-10 5:27
mveOriginalGriff4-Jan-10 5:27 
GeneralRe: Removing values in a dictionary Pin
Paul Harsent4-Jan-10 5:32
Paul Harsent4-Jan-10 5:32 
GeneralRe: Removing values in a dictionary Pin
Luc Pattyn4-Jan-10 5:32
sitebuilderLuc Pattyn4-Jan-10 5:32 
AnswerRe: Removing values in a dictionary [modified] Pin
Luc Pattyn4-Jan-10 5:41
sitebuilderLuc Pattyn4-Jan-10 5:41 
Much better, thanks.

Dictionary.Remove() removes an entry based on a key object, not the value. Even when two strings have equal content, they probably are different strings (unless they are simple reference copies, or both got interned).

Not sure what the easy solution is, I seldom remove things from a Dictionary.

[EDIT]
No, that is not it. A simple experiment shows Dictionary.Remove uses the default Comparer, which for strings compares the content.

Are you sure indexofTO + 2 is correct? How about indexofTO + 3?
[/EDIT]

Smile | :)

Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

Merry Christmas and a Happy New Year to all.


modified on Monday, January 4, 2010 11:55 AM

AnswerRe: Removing values in a dictionary Pin
#realJSOP4-Jan-10 5:41
professional#realJSOP4-Jan-10 5:41 
GeneralRe: Removing values in a dictionary Pin
Paul Harsent4-Jan-10 5:51
Paul Harsent4-Jan-10 5:51 
GeneralRe: Removing values in a dictionary Pin
#realJSOP4-Jan-10 6:11
professional#realJSOP4-Jan-10 6:11 
GeneralRe: Removing values in a dictionary Pin
Paul Harsent4-Jan-10 6:17
Paul Harsent4-Jan-10 6:17 
GeneralRe: Removing values in a dictionary Pin
Luc Pattyn4-Jan-10 6:50
sitebuilderLuc Pattyn4-Jan-10 6:50 
AnswerRe: Removing values in a dictionary Pin
David Skelly4-Jan-10 5:56
David Skelly4-Jan-10 5:56 
GeneralRe: Removing values in a dictionary Pin
Paul Harsent4-Jan-10 6:00
Paul Harsent4-Jan-10 6:00 
GeneralRe: Removing values in a dictionary Pin
David Skelly4-Jan-10 6:17
David Skelly4-Jan-10 6:17 
GeneralRe: Removing values in a dictionary Pin
Paul Harsent4-Jan-10 22:21
Paul Harsent4-Jan-10 22:21 
GeneralRe: Removing values in a dictionary Pin
Ben Fair4-Jan-10 6:36
Ben Fair4-Jan-10 6:36 
QuestionIs there a way to get a list of all exceptions that can be thrown by a program.... Pin
edaindia4-Jan-10 4:40
edaindia4-Jan-10 4:40 
AnswerRe: Is there a way to get a list of all exceptions that can be thrown by a program.... Pin
JasonLee074-Jan-10 4:50
JasonLee074-Jan-10 4:50 
GeneralRe: Is there a way to get a list of all exceptions that can be thrown by a program.... Pin
edaindia4-Jan-10 6:17
edaindia4-Jan-10 6:17 
AnswerRe: Is there a way to get a list of all exceptions that can be thrown by a program.... Pin
sanforjackass4-Jan-10 4:53
sanforjackass4-Jan-10 4:53 
AnswerRe: Is there a way to get a list of all exceptions that can be thrown by a program.... Pin
Eddy Vluggen4-Jan-10 5:14
professionalEddy Vluggen4-Jan-10 5:14 
GeneralRe: Is there a way to get a list of all exceptions that can be thrown by a program.... Pin
edaindia4-Jan-10 6:34
edaindia4-Jan-10 6:34 
GeneralRe: Is there a way to get a list of all exceptions that can be thrown by a program.... Pin
Eddy Vluggen4-Jan-10 11:59
professionalEddy Vluggen4-Jan-10 11:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.