Click here to Skip to main content
15,896,423 members
Home / Discussions / C#
   

C#

 
AnswerRe: Not Getting Data Back From Stored Proc Call Pin
Ashfield5-Nov-08 21:26
Ashfield5-Nov-08 21:26 
Questionwaiting for multiple threads Pin
invictus35-Nov-08 10:24
invictus35-Nov-08 10:24 
AnswerRe: waiting for multiple threads Pin
Nicholas Butler5-Nov-08 11:35
sitebuilderNicholas Butler5-Nov-08 11:35 
QuestionAccessing a static variable Pin
Member 41431915-Nov-08 8:46
Member 41431915-Nov-08 8:46 
AnswerRe: Accessing a static variable Pin
User 66585-Nov-08 9:41
User 66585-Nov-08 9:41 
GeneralRe: Accessing a static variable Pin
Member 41431915-Nov-08 10:25
Member 41431915-Nov-08 10:25 
QuestionHow to compare custom objects in a Dictionary<> Pin
ret76795-Nov-08 8:24
ret76795-Nov-08 8:24 
AnswerRe: How to compare custom objects in a Dictionary<> Pin
User 66585-Nov-08 9:50
User 66585-Nov-08 9:50 
ret7679 wrote:
But:

CustomerIDPair custID = new CustomerIDPair("EZE","TLC");
int test = BtoA[custId];


raises a KeyNotFoundException


This totally makes sense: you create a new CustomerIDPair object and try to locate it in the dictionary. But since you haven't added the newly created CustomerIDPair to the dictionary it simply doesn't exist there.

regards

modified 12-Sep-18 21:01pm.

GeneralRe: How to compare custom objects in a Dictionary<> Pin
ret76796-Nov-08 5:27
ret76796-Nov-08 5:27 
GeneralRe: How to compare custom objects in a Dictionary<> Pin
User 66586-Nov-08 10:25
User 66586-Nov-08 10:25 
Questiondeleting data from a database Pin
postonoh5-Nov-08 7:25
postonoh5-Nov-08 7:25 
QuestionRe: deleting data from a database Pin
Le centriste5-Nov-08 8:33
Le centriste5-Nov-08 8:33 
GeneralRe: deleting data from a database Pin
Guffa5-Nov-08 9:17
Guffa5-Nov-08 9:17 
GeneralRe: deleting data from a database Pin
Le centriste5-Nov-08 9:35
Le centriste5-Nov-08 9:35 
AnswerRe: deleting data from a database Pin
Guffa5-Nov-08 9:37
Guffa5-Nov-08 9:37 
GeneralRe: deleting data from a database Pin
postonoh5-Nov-08 9:42
postonoh5-Nov-08 9:42 
QuestionGetting application Icon Pin
Dirso5-Nov-08 7:16
Dirso5-Nov-08 7:16 
AnswerRe: Getting application Icon Pin
Colin Angus Mackay5-Nov-08 7:22
Colin Angus Mackay5-Nov-08 7:22 
GeneralRe: Getting application Icon Pin
Dirso5-Nov-08 7:35
Dirso5-Nov-08 7:35 
AnswerRe: Getting application Icon Pin
Henry Minute5-Nov-08 9:50
Henry Minute5-Nov-08 9:50 
GeneralRe: Getting application Icon Pin
Dirso5-Nov-08 10:54
Dirso5-Nov-08 10:54 
QuestionOpen Button Click Event Pin
boiDev5-Nov-08 7:15
boiDev5-Nov-08 7:15 
AnswerRe: Open Button Click Event Pin
Colin Angus Mackay5-Nov-08 7:24
Colin Angus Mackay5-Nov-08 7:24 
AnswerRe: Open Button Click Event Pin
nelsonpaixao5-Nov-08 14:07
nelsonpaixao5-Nov-08 14:07 
QuestionHow to programmatically release resources hold by Thread? Pin
Member 23244835-Nov-08 6:09
Member 23244835-Nov-08 6:09 

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.