Click here to Skip to main content
15,904,339 members
Home / Discussions / C#
   

C#

 
GeneralRe: Something basic Pin
PIEBALDconsult29-Apr-08 9:31
mvePIEBALDconsult29-Apr-08 9:31 
GeneralDatagridview and keyenter Pin
Canann29-Apr-08 4:43
Canann29-Apr-08 4:43 
QuestionRe: Datagridview and keyenter Pin
Canann30-Apr-08 2:51
Canann30-Apr-08 2:51 
QuestionHow to generate Typed DataSet with CodeDom ? Pin
hdv21229-Apr-08 3:03
hdv21229-Apr-08 3:03 
Generalanti-pattern in GC Pin
George_George29-Apr-08 2:59
George_George29-Apr-08 2:59 
GeneralRe: anti-pattern in GC Pin
Colin Angus Mackay29-Apr-08 4:03
Colin Angus Mackay29-Apr-08 4:03 
GeneralRe: anti-pattern in GC Pin
George_George29-Apr-08 4:26
George_George29-Apr-08 4:26 
GeneralRe: anti-pattern in GC Pin
led mike29-Apr-08 4:53
led mike29-Apr-08 4:53 
GeneralRe: anti-pattern in GC Pin
George_George29-Apr-08 4:59
George_George29-Apr-08 4:59 
GeneralRe: anti-pattern in GC Pin
led mike29-Apr-08 5:40
led mike29-Apr-08 5:40 
GeneralRe: anti-pattern in GC Pin
George_George29-Apr-08 20:41
George_George29-Apr-08 20:41 
GeneralRe: anti-pattern in GC Pin
led mike30-Apr-08 4:50
led mike30-Apr-08 4:50 
GeneralRe: anti-pattern in GC Pin
George_George30-Apr-08 22:06
George_George30-Apr-08 22:06 
GeneralRe: anti-pattern in GC Pin
led mike1-May-08 6:18
led mike1-May-08 6:18 
GeneralRe: anti-pattern in GC Pin
George_George1-May-08 21:47
George_George1-May-08 21:47 
Generalinserting string into string Pin
stephan_00729-Apr-08 2:59
stephan_00729-Apr-08 2:59 
GeneralRe: inserting string into string Pin
carbon_golem29-Apr-08 3:58
carbon_golem29-Apr-08 3:58 
GeneralRe: inserting string into string Pin
carbon_golem29-Apr-08 3:59
carbon_golem29-Apr-08 3:59 
QuestionC# TextBox with forward slash Pin
WaleedH29-Apr-08 2:52
WaleedH29-Apr-08 2:52 
GeneralRe: C# TextBox with forward slash Pin
Bert delaVega29-Apr-08 4:00
Bert delaVega29-Apr-08 4:00 
GeneralRe: C# TextBox with forward slash [modified] Pin
WaleedH1-May-08 1:52
WaleedH1-May-08 1:52 
QuestionThe best overload method match system.IComparable has invalid arguments Pin
ADTC#29-Apr-08 2:15
ADTC#29-Apr-08 2:15 
GeneralRe: The best overload method match system.IComparable has invalid arguments Pin
Guffa29-Apr-08 2:52
Guffa29-Apr-08 2:52 
Tip: Use the pre tag when posting blocks of code. It makes it readable.

As far as I can see you only have overloads of the Insert method that takes an IComparable parameter. The Patient class doesn't implement the IComparable interface. Even if it would, the variable p1 is an IPatient reference, so it can never be used as an IComparable reference even if the actual ojbect would implement the IComparable interface.

Make the Patint class implement the IComparable interface, and change the variable p1 from an IPatient reference to a Patient reference.

Despite everything, the person most likely to be fooling you next is yourself.

QuestionI tried tht earlier and i gott this error "Patient cannot implement interface member System.IComparable.CompareTo(Object)" Pin
ADTC#29-Apr-08 3:02
ADTC#29-Apr-08 3:02 
AnswerRe: I tried tht earlier and i gott this error "Patient cannot implement interface member System.IComparable.CompareTo(Object)" Pin
J a a n s29-Apr-08 3:06
professionalJ a a n s29-Apr-08 3:06 

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.