Click here to Skip to main content
15,936,247 members
Home / Discussions / C#
   

C#

 
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 
Generalyet another one cropped up Pin
ADTC#29-Apr-08 3:14
ADTC#29-Apr-08 3:14 
GeneralRe: yet another one cropped up Pin
J a a n s29-Apr-08 3:28
professionalJ a a n s29-Apr-08 3:28 
GeneralThank you Pin
ADTC#29-Apr-08 4:30
ADTC#29-Apr-08 4:30 
AnswerRe: The best overload method match system.IComparable has invalid arguments Pin
J a a n s29-Apr-08 2:54
professionalJ a a n s29-Apr-08 2:54 
QuestionDoesnot implement interface member System.IComparable.CompareTo(Object) Pin
ADTC#29-Apr-08 3:06
ADTC#29-Apr-08 3:06 
AnswerRe: Doesnot implement interface member System.IComparable.CompareTo(Object) Pin
J a a n s29-Apr-08 3:09
professionalJ a a n s29-Apr-08 3:09 
Questionyet another one cropped up Pin
ADTC#29-Apr-08 3:19
ADTC#29-Apr-08 3:19 
GeneralInstallation Pin
coders_need29-Apr-08 1:14
coders_need29-Apr-08 1:14 
GeneralRe: Installation Pin
J a a n s29-Apr-08 1:25
professionalJ a a n s29-Apr-08 1:25 
GeneralRe: Installation Pin
Vikram A Punathambekar29-Apr-08 2:17
Vikram A Punathambekar29-Apr-08 2:17 
QuestionHow to use regular expression Pin
Exelioindia29-Apr-08 0:07
Exelioindia29-Apr-08 0:07 
AnswerRe: How to use regular expression Pin
c242329-Apr-08 0:48
c242329-Apr-08 0:48 
GeneralRe: How to use regular expression Pin
Exelioindia29-Apr-08 1:05
Exelioindia29-Apr-08 1:05 
AnswerRe: How to use regular expression Pin
Pete O'Hanlon29-Apr-08 0:51
mvePete O'Hanlon29-Apr-08 0:51 
GeneralRe: How to use regular expression Pin
Exelioindia29-Apr-08 1:03
Exelioindia29-Apr-08 1:03 

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.