Click here to Skip to main content
15,908,775 members
Home / Discussions / C#
   

C#

 
AnswerRe: Icomparer runtime error Pin
Stefan Troschuetz26-Oct-06 21:32
Stefan Troschuetz26-Oct-06 21:32 
It would be nice to know what exception the IComparer threw. It should be accessible through the InnerException property of the thrown InvalidOperationException.

If I have to guess, I'd say that you are getting an InvalidCastException. It seems your outerContents array contains allInfo objects as you're casting the objects a and b to it in your compare method. As object to search for you pass in something called movieId, so I guess it's a plain int or something similar which can't be cast to allInfo.


"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook

www.troschuetz.de

AnswerRe: Icomparer runtime error Pin
ednrgc27-Oct-06 2:30
ednrgc27-Oct-06 2:30 
QuestionReflection Help Pin
lavanya_satheesh26-Oct-06 19:41
lavanya_satheesh26-Oct-06 19:41 
AnswerRe: Reflection Help Pin
engsrini26-Oct-06 21:09
engsrini26-Oct-06 21:09 
AnswerRe: Reflection Help Pin
Nader Elshehabi26-Oct-06 21:37
Nader Elshehabi26-Oct-06 21:37 
AnswerRe: Reflection Help Pin
Pete O'Hanlon27-Oct-06 1:30
mvePete O'Hanlon27-Oct-06 1:30 
GeneralRe: Reflection Help Pin
lavanya_satheesh27-Oct-06 19:07
lavanya_satheesh27-Oct-06 19:07 
Questionhow to make a treeview node invisible using the code in C# Pin
kalaveer26-Oct-06 18:55
kalaveer26-Oct-06 18:55 
AnswerRe: how to make a treeview node invisible using the code in C# Pin
ednrgc27-Oct-06 2:34
ednrgc27-Oct-06 2:34 
AnswerRe: how to make a treeview node invisible using the code in C# [modified] Pin
DiegoValdevino28-Oct-06 2:04
DiegoValdevino28-Oct-06 2:04 
GeneralRe: how to make a treeview node invisible using the code in C# Pin
joekecalo26-Feb-10 2:34
joekecalo26-Feb-10 2:34 
Questiongetting a latest value that was inserted into a database. Pin
steve_rm26-Oct-06 17:49
steve_rm26-Oct-06 17:49 
AnswerRe: getting a latest value that was inserted into a database. Pin
sam#26-Oct-06 18:58
sam#26-Oct-06 18:58 
AnswerRe: getting a latest value that was inserted into a database. Pin
Navi1526-Oct-06 19:06
Navi1526-Oct-06 19:06 
QuestionC# - Working with file Pin
leanhsang26-Oct-06 17:10
leanhsang26-Oct-06 17:10 
AnswerRe: C# - Working with file Pin
engsrini26-Oct-06 19:01
engsrini26-Oct-06 19:01 
AnswerRe: C# - Working with file Pin
sam#26-Oct-06 19:01
sam#26-Oct-06 19:01 
AnswerRe: C# - Working with file Pin
ednrgc27-Oct-06 2:42
ednrgc27-Oct-06 2:42 
QuestionDragDrop Article Dilemma...Please help... Pin
new_phoenix26-Oct-06 15:59
new_phoenix26-Oct-06 15:59 
QuestionEliminating Write Protection Pin
hotnreddyfreddy26-Oct-06 13:19
hotnreddyfreddy26-Oct-06 13:19 
AnswerRe: Eliminating Write Protection Pin
ednrgc27-Oct-06 2:39
ednrgc27-Oct-06 2:39 
QuestionStop Button from taking focus during a keypress or keyup event. Pin
bradsnobar26-Oct-06 11:18
bradsnobar26-Oct-06 11:18 
AnswerRe: Stop Button from taking focus during a keypress or keyup event. Pin
bradsnobar26-Oct-06 11:35
bradsnobar26-Oct-06 11:35 
Questionhow AdjustTokenPrivileges in C# ? Pin
vincent3126-Oct-06 10:57
vincent3126-Oct-06 10:57 
AnswerRe: how AdjustTokenPrivileges in C# ? Pin
vincent3127-Oct-06 0:38
vincent3127-Oct-06 0:38 

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.