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

C#

 
GeneralRe: How to generate a random number Pin
Neha_Gupta26-Oct-06 21:08
Neha_Gupta26-Oct-06 21:08 
GeneralRe: How to generate a random number Pin
seee sharp26-Oct-06 21:43
seee sharp26-Oct-06 21:43 
Questionhow to install asian language support for windows when installing my software Pin
sikandarhayat26-Oct-06 20:13
sikandarhayat26-Oct-06 20:13 
AnswerRe: how to install asian language support for windows when installing my software Pin
Sebastian Schneider27-Oct-06 1:25
Sebastian Schneider27-Oct-06 1:25 
GeneralRe: how to install asian language support for windows when installing my software Pin
sikandarhayat27-Oct-06 1:52
sikandarhayat27-Oct-06 1:52 
QuestionHow to Create my own component using C# Pin
pubudu_nt26-Oct-06 20:05
pubudu_nt26-Oct-06 20:05 
AnswerRe: How to Create my own component using C# Pin
Nader Elshehabi26-Oct-06 21:15
Nader Elshehabi26-Oct-06 21:15 
QuestionIcomparer runtime error Pin
kshet2626-Oct-06 20:01
kshet2626-Oct-06 20:01 
This is my comparer:

public class movieIdCompareValueClass:IComparer
{
public int Compare(object a, object b)
{
return ((allInfo)a).movieId.CompareTo(((allInfo)b).movieId);
}
}


I am using it in:

found = Array.BinarySearch(outerContents, movieId, new movieIdCompareValueClass());

I have tried a couple different ways to set up the comparer, but I always get a runtime error on the above line:

System.InvalidOperationException
Additional information: Specified IComparer threw an exception.

What is causing this error? Is the comparer looking beyond the last element of the outerContents array? If so how do I prevent it?
AnswerRe: Icomparer runtime error Pin
Stefan Troschuetz26-Oct-06 21:32
Stefan Troschuetz26-Oct-06 21:32 
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 

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.